forked from dfinity/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
51 lines (47 loc) · 1016 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ system ? builtins.currentSystem
, isMaster ? true
, pkgs ? import ./nix { inherit system isMaster labels; }
, labels ? {}
, use_ic_ref ? false
, dfx
}:
let
inherit (pkgs) lib;
args = {
inherit pkgs dfx system use_ic_ref;
utils = lib.gitOnlySource ./utils;
assets = lib.gitOnlySource ./assets;
archive = lib.gitOnlySource ./archive;
};
in
{
shell = pkgs.runCommandNoCC "e2e-test-shell${lib.optionalString use_ic_ref "-use_ic_ref"}" {
nativeBuildInputs = with pkgs; [
bats
diffutils
curl
findutils
gnugrep
gnutar
gzip
jq
mitmproxy
netcat
nodejs
ps
python3
procps
which
dfx.build
] ++ lib.optional use_ic_ref ic-ref
++ lib.optional stdenv.isLinux [ glibc.bin patchelf ];
BATSLIB = pkgs.sources.bats-support;
USE_IC_REF = use_ic_ref;
assets = args.assets;
utils = args.utils;
archive = args.archive;
} ''
touch $out
'';
recurseForDerivations = true;
}