2013-11-25 18:47:03 +01:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
2009-03-17 18:11:55 +01:00
|
|
|
rec {
|
2013-11-25 18:47:03 +01:00
|
|
|
inherit shell;
|
|
|
|
|
|
|
|
path = coreutils;
|
2009-03-17 18:11:55 +01:00
|
|
|
|
2013-11-25 18:47:03 +01:00
|
|
|
system = builtins.currentSystem;
|
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;
|
2016-08-17 15:12:54 +02:00
|
|
|
args = ["-e" args.builder or (builtins.toFile "builder.sh" "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
|
|
|
}
|