about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-01-07 16:29:58 -0600
committerGitHub <noreply@github.com>2019-01-07 16:29:58 -0600
commit04373fd3ccf9034b0cee050a485fa30ac00cfd76 (patch)
treed0ec2a0733e91fb6d20cf91642a6dbae4f26e77e
parent59667421a14622e5f0c09ab7c7addb2699926950 (diff)
parentf05d8f31ec944eb5b07a9dbf80b606372e47cb21 (diff)
downloadnixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.tar
nixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.tar.gz
nixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.tar.bz2
nixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.tar.lz
nixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.tar.xz
nixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.tar.zst
nixlib-04373fd3ccf9034b0cee050a485fa30ac00cfd76.zip
Merge pull request #52594 from matthewbauer/fix-51025
make-disk-image: use filterSource instead of cleanSource
-rw-r--r--nixos/lib/make-disk-image.nix2
-rw-r--r--nixos/modules/installer/cd-dvd/channel.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/lib/make-disk-image.nix b/nixos/lib/make-disk-image.nix
index bf32a36895c5..6fec322f9095 100644
--- a/nixos/lib/make-disk-image.nix
+++ b/nixos/lib/make-disk-image.nix
@@ -84,7 +84,7 @@ let format' = format; in let
   # FIXME: merge with channel.nix / make-channel.nix.
   channelSources = pkgs.runCommand "nixos-${config.system.nixos.version}" {} ''
     mkdir -p $out
-    cp -prd ${nixpkgs} $out/nixos
+    cp -prd ${nixpkgs.outPath} $out/nixos
     chmod -R u+w $out/nixos
     if [ ! -e $out/nixos/nixpkgs ]; then
       ln -s . $out/nixos/nixpkgs
diff --git a/nixos/modules/installer/cd-dvd/channel.nix b/nixos/modules/installer/cd-dvd/channel.nix
index 01cfe8a02e10..e946c4abc576 100644
--- a/nixos/modules/installer/cd-dvd/channel.nix
+++ b/nixos/modules/installer/cd-dvd/channel.nix
@@ -16,7 +16,7 @@ let
     { }
     ''
       mkdir -p $out
-      cp -prd ${nixpkgs} $out/nixos
+      cp -prd ${nixpkgs.outPath} $out/nixos
       chmod -R u+w $out/nixos
       if [ ! -e $out/nixos/nixpkgs ]; then
         ln -s . $out/nixos/nixpkgs