2013-11-25 12:47:03 -05:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
2009-03-17 13:11:55 -04:00
|
|
|
rec {
|
2013-11-25 12:47:03 -05:00
|
|
|
inherit shell;
|
|
|
|
|
|
|
|
path = coreutils;
|
2009-03-17 13:11:55 -04:00
|
|
|
|
2019-05-07 17:22:47 -04:00
|
|
|
system = "@system@";
|
2009-03-17 13:11:55 -04:00
|
|
|
|
2013-11-25 12:47:03 -05:00
|
|
|
shared = builtins.getEnv "_NIX_TEST_SHARED";
|
2009-03-17 13:11:55 -04:00
|
|
|
|
2009-03-17 12:33:48 -04:00
|
|
|
mkDerivation = args:
|
|
|
|
derivation ({
|
2009-03-17 13:11:55 -04:00
|
|
|
inherit system;
|
|
|
|
builder = shell;
|
2017-10-25 07:01:50 -04:00
|
|
|
args = ["-e" args.builder or (builtins.toFile "builder.sh" "if [ -e .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
|
2009-03-17 13:11:55 -04:00
|
|
|
PATH = path;
|
2012-01-02 20:51:38 -05:00
|
|
|
} // removeAttrs args ["builder" "meta"])
|
|
|
|
// { meta = args.meta or {}; };
|
2009-03-17 12:33:48 -04:00
|
|
|
}
|