static-nix-shell: remove unused extraMakeWrapperArgs argument

it wasn't even implemented right
This commit is contained in:
2025-07-20 20:09:50 +00:00
parent fa38f70079
commit 8fc16eaf39

View File

@@ -57,7 +57,6 @@ in rec {
pkgExprs,
srcPath ? pname,
srcRoot ? null,
extraMakeWrapperArgs ? [],
...
}@attrs:
let
@@ -150,10 +149,9 @@ in rec {
# ensure that there weren't some trailing deps we *didn't* substitute
grep '^# nix deps evaluated statically$' $out/bin/${srcPath} || die 'trailing characters in nix-shell directive for ${srcPath}'
if [[ ''${#makeWrapperArgs[@]} != 0 || ''${#extraMakeWrapperArgs[@]} ]]; then
if [[ ''${#makeWrapperArgs[@]} != 0 ]]; then
wrapProgram $out/bin/${srcPath} \
"''${makeWrapperArgs[@]}" \
"''${extraMakeWrapperArgs[@]}"
"''${makeWrapperArgs[@]}"
fi
runHook postInstall
@@ -173,7 +171,6 @@ in rec {
mainProgram = srcPath;
} // (attrs.meta or {});
} // extraDerivArgs // (removeAttrs attrs [
"extraMakeWrapperArgs"
"interpreter"
"interpreterName"
"meta"