From 63f18cd0c6fb2e41e29b6f10f3495192d40644ee Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 5 Jun 2025 13:09:57 +0200 Subject: [PATCH] Prevent double copy of nixpkgs source tree (cherry picked from commit 0a87ba0e392ca890111d4ed7262e65c170751cb5) --- docker.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker.nix b/docker.nix index d52c317d6..2670f8394 100644 --- a/docker.nix +++ b/docker.nix @@ -173,7 +173,12 @@ let channel = pkgs.runCommand "channel-nixos" { inherit bundleNixpkgs; } '' mkdir $out if [ "$bundleNixpkgs" ]; then - ln -s ${nixpkgs} $out/nixpkgs + ln -s ${ + builtins.path { + path = nixpkgs; + name = "source"; + } + } $out/nixpkgs echo "[]" > $out/manifest.nix fi '';