From 94c6cc8ea1eeccbd47b1de266b781c7bdd2df433 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Mon, 8 Jun 2026 11:37:32 -0700 Subject: [PATCH] replaceVarsWith: properly set pname, version Link: https://github.com/NixOS/nixpkgs/issues/485742 Signed-off-by: Ethan Carter Edwards --- pkgs/build-support/replace-vars/replace-vars-with.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/replace-vars/replace-vars-with.nix b/pkgs/build-support/replace-vars/replace-vars-with.nix index abbb9a1cc1a0..60e48f841a19 100644 --- a/pkgs/build-support/replace-vars/replace-vars-with.nix +++ b/pkgs/build-support/replace-vars/replace-vars-with.nix @@ -122,7 +122,8 @@ in stdenvNoCC.mkDerivation ( { - name = baseNameOf src; + pname = optionalAttrs.pname or optionalAttrs.name or (baseNameOf src); + version = "26.11pre-git"; } // optionalAttrs // forcedAttrs