-
Notifications
You must be signed in to change notification settings - Fork 161
/
shell.nix
56 lines (53 loc) · 1.13 KB
/
shell.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
52
53
54
55
56
# This derivation assumes a toplogy file where the following attributes are
# defined:
#
# - bftCoreNodes
# - stakePoolNodes
# - coreNodes
#
{ config ? {}
, pkgs ? import ./nix {
inherit config;
}
}:
with pkgs; with lib;
let
nivOverrides = writeShellScriptBin "niv-overrides" ''
niv --sources-file ${toString globals.sourcesJsonOverride} $@
'';
in mkShell (globals.environmentVariables // {
nativeBuildInputs = [
awscli2
bashInteractive
cardano-cli
dnsutils
niv
locli
nivOverrides
nix
nix-diff
nixops
pandoc
perl
pstree
telnet
git
direnv
nix-direnv
lorri
relayUpdateTimer
snapshotStatesTimer
s3cmd
icdiff
] ++ (lib.optionals pkgs.stdenv.hostPlatform.isLinux ([
# Those fail to compile under macOS:
node-update
snapshot-states
# script NOT for use on mainnet:
] ++ lib.optional (globals.environmentName != "mainnet") kes-rotation));
NIX_PATH = "nixpkgs=${path}";
NIXOPS_DEPLOYMENT = "${globals.deploymentName}";
passthru = {
gen-graylog-creds = iohk-ops-lib.scripts.gen-graylog-creds { staticPath = ./static; };
};
})