fetchzip: take derivationArgs

This commit is contained in:
Yueh-Shun Li
2025-10-29 21:36:33 +08:00
parent b29af41b6e
commit 0fc9eec2e5

View File

@@ -42,6 +42,11 @@ lib.extendMkDerivation {
# an appropriate unpacking tool. # an appropriate unpacking tool.
extension ? null, 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 # the rest are given to fetchurl as is
... ...
}@args: }@args:
@@ -110,7 +115,7 @@ lib.extendMkDerivation {
# ^ Remove non-owner write permissions # ^ Remove non-owner write permissions
# Fixes https://github.com/NixOS/nixpkgs/issues/38649 # Fixes https://github.com/NixOS/nixpkgs/issues/38649
derivationArgs = { derivationArgs = derivationArgs // {
inherit inherit
extension extension
stripRoot stripRoot