flake.nix: clean outputs

Move closer to the nix 2.8 schema
This commit is contained in:
zimbatm 2022-05-18 20:25:12 +02:00
parent 0b8e57c5e6
commit 3824820f08
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
2 changed files with 7 additions and 4 deletions

View File

@ -64,5 +64,5 @@ in
docs = nixpkgs.callPackage ./docs { };
# Flake attributes
defaultPackage = treefmt;
default = treefmt;
}

View File

@ -8,15 +8,18 @@
outputs = { self, nixpkgs, flake-utils }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
nixpkgs' = nixpkgs.legacyPackages.${system};
pkgs = import self {
inherit system;
inputs = null;
nixpkgs = nixpkgs.legacyPackages.${system};
nixpkgs = nixpkgs';
};
in
{
defaultPackage = pkgs.defaultPackage;
legacyPackages = pkgs;
defaultPackage = pkgs.default;
packages = pkgs;
devShell = pkgs.devShell;
}
);