2013-11-25 17:47:03 +00:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
2009-03-17 17:11:55 +00:00
|
|
|
rec {
|
2013-11-25 17:47:03 +00:00
|
|
|
inherit shell;
|
|
|
|
|
|
|
|
path = coreutils;
|
2009-03-17 17:11:55 +00:00
|
|
|
|
2013-11-25 17:47:03 +00:00
|
|
|
system = builtins.currentSystem;
|
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;
|
2009-03-17 16:33:48 +00:00
|
|
|
args = ["-e" args.builder];
|
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
|
|
|
}
|