lix-releng-staging/tests/config.nix
2013-11-25 18:47:03 +01:00

20 lines
383 B
Nix

with import <nix/config.nix>;
rec {
inherit shell;
path = coreutils;
system = builtins.currentSystem;
shared = builtins.getEnv "_NIX_TEST_SHARED";
mkDerivation = args:
derivation ({
inherit system;
builder = shell;
args = ["-e" args.builder];
PATH = path;
} // removeAttrs args ["builder" "meta"])
// { meta = args.meta or {}; };
}