nix: put builtin in scope when needed

This commit is contained in:
Léana 江 2024-04-06 13:50:33 +02:00 committed by Léana 江
parent d7d55059ce
commit 8271aea4ba
9 changed files with 38 additions and 34 deletions

View file

@ -8,6 +8,7 @@
extraArgs ? [ ],
useDefaultsArgs ? true,
}:
with builtins;
stdenvNoCC.mkDerivation {
/* Credits:
https://github.com/NixOS/nixpkgs/issues/44329#issuecomment-1231189572
@ -25,10 +26,10 @@ stdenvNoCC.mkDerivation {
buildPhase =
let
args = builtins.concatStringsSep " " extraArgs;
args = concatStringsSep " " extraArgs;
defArgs =
if useDefaultsArgs then
builtins.concatStringsSep " " [
concatStringsSep " " [
"--careful"
"--complete"
"--quiet"