mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-17 12:50:26 +03:00
flake.nix: clean outputs
Move closer to the nix 2.8 schema
This commit is contained in:
parent
0b8e57c5e6
commit
3824820f08
@ -64,5 +64,5 @@ in
|
||||
docs = nixpkgs.callPackage ./docs { };
|
||||
|
||||
# Flake attributes
|
||||
defaultPackage = treefmt;
|
||||
default = treefmt;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user