mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Nix's own flake: Dedup and memoize more
- `nixpkgsFor` does all of native, static, cross, and the different stdenvs. - The main Nix derivation is no longer duplicated for static. - DRY nixpkgs.lib and lib.genAttrs calls.
This commit is contained in:
parent
9a3f66d9d9
commit
d7a4f08d42
3 changed files with 112 additions and 184 deletions
|
@ -120,7 +120,7 @@ let
|
|||
|
||||
makeTest = imageName: testName:
|
||||
let image = images.${imageName}; in
|
||||
with nixpkgsFor.${image.system};
|
||||
with nixpkgsFor.${image.system}.native;
|
||||
runCommand
|
||||
"installer-test-${imageName}-${testName}"
|
||||
{ buildInputs = [ qemu_kvm openssh ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue