diff --git a/pkgs/build-support/fetchurl/default.nix b/pkgs/build-support/fetchurl/default.nix index 5ffb70e3a9f8a..3bcf68b6d86b5 100644 --- a/pkgs/build-support/fetchurl/default.nix +++ b/pkgs/build-support/fetchurl/default.nix @@ -237,6 +237,11 @@ lib.extendMkDerivation { in derivationArgs + # Compatibility layer for empty-string pname/version exclusion for Nixpkgs 25.11. + // lib.optionalAttrs (!(lib.oldestSupportedReleaseIsAtLeast 2511)) ( + lib.optionalAttrs (pname == "") { pname = null; } + // lib.optionalAttrs (version == "") { version = null; } + ) // { name = if finalAttrs.pname or null != null && finalAttrs.version or null != null then