Revert "nix: put builtin in scope when needed"

I don't know where I got this anti-pattern. It makes the LSP unable to
figure out which bindings are unbound
This commit is contained in:
Léana 江 2024-04-14 18:09:33 +02:00 committed by Léana 江
parent 082ebfb772
commit 74689b460e
9 changed files with 34 additions and 38 deletions

View file

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