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