resholve: track missed upstream Nix fix

Forgot to port this resholve Nix API fix in the course of #184292.

Same change as:
github.com/abathur/resholve/commit/b743d2eb12d82e35c567733a7a884174e3606641
This commit is contained in:
Travis A. Everett 2023-01-14 14:38:32 -06:00
parent 8a3c6a836c
commit ba5e8f2835
2 changed files with 9 additions and 0 deletions

View file

@ -129,6 +129,7 @@ rec {
)
)
)}
'' + lib.optionalString (partialSolution.interpreter != "none") ''
${partialSolution.interpreter} -n $out
'';
};
@ -146,6 +147,7 @@ rec {
)
)
}
'' + lib.optionalString (partialSolution.interpreter != "none") ''
${partialSolution.interpreter} -n $out/bin/${name}
'';
};

View file

@ -179,4 +179,11 @@ rec {
echo "Hello"
file .
'';
resholvedScriptBinNone = resholve.writeScriptBin "resholved-script-bin" {
inputs = [ file ];
interpreter = "none";
} ''
echo "Hello"
file .
'';
}