Nix: Add nix_local for local builds.
This commit is contained in:
parent
5014c45f99
commit
342ec6bbee
|
@ -60,5 +60,11 @@
|
||||||
|
|
||||||
nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}")
|
nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Run nix locally with no builders.
|
||||||
|
# Usage: nix_local <COMMAND>
|
||||||
|
function nix_local() {
|
||||||
|
nix --option max-jobs $(_core_count) --builders "" --substituters https://cache.nixos.org ''${@}
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue