From 89b96240319660f9b79f14bcb82e921749f58543 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Sun, 7 Jul 2024 09:30:08 +0200 Subject: [PATCH] pkgs/top-level: fix selfExpr nixpkgsPath argument --- pkgs/top-level/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 5bfdc46..85abb2e 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -12,7 +12,8 @@ let options = (builtins.removeAttrs args attrsToRemove) // { overlays = (args.overlays or []) ++ [ - ( import ../overlays/selfExpr.nix { nixpkgsPath = ./impure.nix; } ) + # ../.. should be nix store path that represents self in outputs.nix that is gc-rooted by this point + ( import ../overlays/selfExpr.nix { nixpkgsPath = "${builtins.toString ../..}/pkgs/top-level/impure.nix"; } ) ( import ../overlays/unstable.nix ) ( import ../overlays/version-info-fixup.nix { inherit inputs; } ) ( import "${inputs.nixpkgs}/pkgs/top-level/by-name-overlay.nix" ../by-name )