From 0fc9eec2e5d2cf8e69be5516752ffa657ab36336 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Wed, 29 Oct 2025 21:36:33 +0800 Subject: [PATCH] fetchzip: take derivationArgs --- pkgs/build-support/fetchzip/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/fetchzip/default.nix b/pkgs/build-support/fetchzip/default.nix index d25f1f0e3943..4376fef41085 100644 --- a/pkgs/build-support/fetchzip/default.nix +++ b/pkgs/build-support/fetchzip/default.nix @@ -42,6 +42,11 @@ lib.extendMkDerivation { # an appropriate unpacking tool. extension ? null, + # Additional stdenvNoCC.mkDerivation arguments. + # It is typically for derived fetchers to pass down additional arguments, + # and the specified arguments have lower precedence than other mkDerivation arguments. + derivationArgs ? { }, + # the rest are given to fetchurl as is ... }@args: @@ -110,7 +115,7 @@ lib.extendMkDerivation { # ^ Remove non-owner write permissions # Fixes https://github.com/NixOS/nixpkgs/issues/38649 - derivationArgs = { + derivationArgs = derivationArgs // { inherit extension stripRoot -- knotmirror 0.0.1