1
0
Fork 0
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:
John Ericson 2022-03-02 02:40:18 +00:00 committed by zimbatm
parent 9a3f66d9d9
commit d7a4f08d42
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
3 changed files with 112 additions and 184 deletions

View file

@ -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 ];