diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-03-27 23:49:14 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-26 22:07:28 +0100 |
commit | 6a9c815734de3549a5116796830bd4ebfd006025 (patch) | |
tree | 46f55d0201fc49c1a7528864681cad041f067e4f /tests/config.nix.in | |
parent | 045708db4343174f30f3647776971c852f72a9e8 (diff) |
Remove most of <nix/config.nix>
This is no longer needed.
Diffstat (limited to 'tests/config.nix.in')
-rw-r--r-- | tests/config.nix.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/config.nix.in b/tests/config.nix.in new file mode 100644 index 000000000..51aed539c --- /dev/null +++ b/tests/config.nix.in @@ -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 {}; }; +} |