summary refs log tree commit diff
path: root/tests/config.nix
blob: 6244a15fa48a4273283f89b223c80da13e768e5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 {}; };
}