-
Notifications
You must be signed in to change notification settings - Fork 584
/
default.nix
64 lines (61 loc) · 1.25 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
with builtins;
{ pkgs ? import
(
fetchTarball {
name = "nixpkgs-unstable-2022-04-21";
url = "https://github.com/NixOS/nixpkgs/archive/76b68621e88f674922aa70276a8333f319ce9c05.tar.gz";
sha256 = "0c02rxy51jyvmim3h394xjxb6wmnla52mdx1h7rq8x0cf47wmfq4";
}
)
{
config = {
allowUnfree = true;
};
overlays = [ ];
}
}:
let
name = "ec2instances.info";
tools = with pkgs; {
actions = [
act
];
cli = [
bashInteractive_5
coreutils
curl
jq
];
formatters = [
black
nixpkgs-fmt
nodePackages.prettier
];
python = [
(python39.withPackages (p: with p; lib.flatten [
boto
boto3
(invocations.overridePythonAttrs (old: { propagatedBuildInputs = old.propagatedBuildInputs ++ [ tqdm ]; }))
invoke
lxml
Mako
requests
six
]))
];
scripts = [
(writeShellScriptBin "test_actions" ''
${pkgs.act}/bin/act --artifact-server-path ./.cache/ -r --rm
'')
];
};
packages = with pkgs; lib.flatten [
(pkgs.lib.flatten (attrValues tools))
];
env = pkgs.buildEnv {
inherit name;
buildInputs = packages;
paths = packages;
};
in
env