2009-03-17 17:11:55 +00:00
|
|
|
rec {
|
2019-03-27 22:49:14 +00:00
|
|
|
shell = "@bash@";
|
2013-11-25 17:47:03 +00:00
|
|
|
|
2019-03-27 22:49:14 +00:00
|
|
|
path = "@coreutils@";
|
2009-03-17 17:11:55 +00:00
|
|
|
|
2020-03-24 13:26:13 +00:00
|
|
|
system = "@system@";
|
2009-03-17 17:11:55 +00:00
|
|
|
|
2013-11-25 17:47:03 +00:00
|
|
|
shared = builtins.getEnv "_NIX_TEST_SHARED";
|
2009-03-17 17:11:55 +00:00
|
|
|
|
2009-03-17 16:33:48 +00:00
|
|
|
mkDerivation = args:
|
|
|
|
derivation ({
|
2009-03-17 17:11:55 +00:00
|
|
|
inherit system;
|
|
|
|
builder = shell;
|
2020-05-12 11:49:55 +00: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 17:11:55 +00:00
|
|
|
PATH = path;
|
2012-01-03 01:51:38 +00:00
|
|
|
} // removeAttrs args ["builder" "meta"])
|
|
|
|
// { meta = args.meta or {}; };
|
2009-03-17 16:33:48 +00:00
|
|
|
}
|