mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Remove most of <nix/config.nix>
This is no longer needed.
This commit is contained in:
parent
045708db43
commit
6a9c815734
4 changed files with 4 additions and 13 deletions
18
tests/config.nix.in
Normal file
18
tests/config.nix.in
Normal file
|
@ -0,0 +1,18 @@
|
|||
rec {
|
||||
shell = "@bash@";
|
||||
|
||||
path = "@coreutils@";
|
||||
|
||||
system = builtins.currentSystem;
|
||||
|
||||
shared = builtins.getEnv "_NIX_TEST_SHARED";
|
||||
|
||||
mkDerivation = args:
|
||||
derivation ({
|
||||
inherit system;
|
||||
builder = shell;
|
||||
args = ["-e" args.builder or (builtins.toFile "builder.sh" "if [ -e .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
|
||||
PATH = path;
|
||||
} // removeAttrs args ["builder" "meta"])
|
||||
// { meta = args.meta or {}; };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue