Merge pull request #62333 from kampka/buildPackages-for-config-builders
Build packages for config builders
commitf8c12edfdf2e163768fa5380af3cf99fdd29866d
authorMatthew Bauer <mjbauer95@gmail.com>
dateWed 5 Jun 2019, 14:47 (7 years ago)
parentac6e906f2a8948
nixos/modules/system/boot/loader/generations-dir/generations-dir.nix+2−2
@@ -7,8 +7,8 @@ let
77 generationsDirBuilder = pkgs.substituteAll {
88 src = ./generations-dir-builder.sh;
99 isExecutable = true;
10− inherit (pkgs.buildPackages) bash;
11− path = with pkgs.buildPackages; [coreutils gnused gnugrep];
10+ inherit (pkgs) bash;
11+ path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
1212 inherit (config.boot.loader.generationsDir) copyKernels;
1313 };
1414
nixos/modules/system/boot/loader/generic-extlinux-compatible/default.nix+1−1
@@ -8,7 +8,7 @@ let
88
99 timeoutStr = if blCfg.timeout == null then "-1" else toString blCfg.timeout;
1010
11− builder = import ./extlinux-conf-builder.nix { pkgs = pkgs.buildPackages; };
11+ builder = import ./extlinux-conf-builder.nix { inherit pkgs; };
1212in
1313{
1414 options = {
nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.nix+2−2
@@ -3,6 +3,6 @@
33pkgs.substituteAll {
44 src = ./extlinux-conf-builder.sh;
55 isExecutable = true;
6− path = [pkgs.buildPackages.coreutils pkgs.buildPackages.gnused pkgs.buildPackages.gnugrep];
7− inherit (pkgs.buildPackages) bash;
6+ path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
7+ inherit (pkgs) bash;
88}
nixos/modules/system/boot/loader/init-script/init-script.nix+2−2
@@ -7,8 +7,8 @@ let
77 initScriptBuilder = pkgs.substituteAll {
88 src = ./init-script-builder.sh;
99 isExecutable = true;
10− inherit (pkgs.buildPackages) bash;
11− path = with pkgs.buildPackages; [coreutils gnused gnugrep];
10+ inherit (pkgs) bash;
11+ path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
1212 };
1313
1414in
nixos/modules/system/boot/loader/raspberrypi/uboot-builder.nix+4−3
@@ -18,17 +18,18 @@ let
1818
1919 extlinuxConfBuilder =
2020 import ../generic-extlinux-compatible/extlinux-conf-builder.nix {
21− pkgs = pkgs.buildPackages;
21+ inherit pkgs;
2222 };
2323in
2424pkgs.substituteAll {
2525 src = ./uboot-builder.sh;
2626 isExecutable = true;
27− inherit (pkgs.buildPackages) bash;
28− path = with pkgs.buildPackages; [coreutils gnused gnugrep];
27+ inherit (pkgs) bash;
28+ path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
2929 firmware = pkgs.raspberrypifw;
3030 inherit uboot;
3131 inherit configTxt;
3232 inherit extlinuxConfBuilder;
3333 inherit version;
3434}
35+
nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix+1−1
@@ -12,7 +12,7 @@ let
1212
1313 isExecutable = true;
1414
15− inherit (pkgs.buildPackages) python3;
15+ inherit (pkgs) python3;
1616
1717 systemd = config.systemd.package;
1818