flake: avoid one evaluation of nixpkgs
This commit is contained in:
parent
226e726551
commit
4985d670bb
|
@ -180,13 +180,11 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// inputs.flake-utils.lib.eachDefaultSystem (system: let
|
// inputs.flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = import nixpkgs {inherit system;};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
packages =
|
packages =
|
||||||
inputs.flake-utils.lib.flattenTree
|
inputs.flake-utils.lib.flattenTree
|
||||||
(import ./pkgs {
|
(import ./pkgs {inherit pkgs;});
|
||||||
pkgs = import nixpkgs {inherit system;};
|
|
||||||
});
|
|
||||||
devShells.default = pkgs.mkShellNoCC {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.alejandra
|
pkgs.alejandra
|
||||||
|
|
Loading…
Reference in a new issue