2009-03-17 18:11:55 +01:00
|
|
|
rec {
|
2019-03-27 23:49:14 +01:00
|
|
|
shell = "@bash@";
|
2013-11-25 18:47:03 +01:00
|
|
|
|
2019-03-27 23:49:14 +01:00
|
|
|
path = "@coreutils@";
|
2009-03-17 18:11:55 +01:00
|
|
|
|
2020-03-24 14:26:13 +01:00
|
|
|
system = "@system@";
|
2009-03-17 18:11:55 +01:00
|
|
|
|
2013-11-25 18:47:03 +01:00
|
|
|
shared = builtins.getEnv "_NIX_TEST_SHARED";
|
2009-03-17 18:11:55 +01:00
|
|
|
|
2009-03-17 17:33:48 +01:00
|
|
|
mkDerivation = args:
|
|
|
|
derivation ({
|
2009-03-17 18:11:55 +01:00
|
|
|
inherit system;
|
|
|
|
builder = shell;
|
2017-10-25 13:01:50 +02:00
|
|
|
args = ["-e" args.builder or (builtins.toFile "builder.sh" "if [ -e .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
|
2009-03-17 18:11:55 +01:00
|
|
|
PATH = path;
|
2012-01-03 02:51:38 +01:00
|
|
|
} // removeAttrs args ["builder" "meta"])
|
|
|
|
// { meta = args.meta or {}; };
|
2009-03-17 17:33:48 +01:00
|
|
|
}
|