-
Notifications
You must be signed in to change notification settings - Fork 73
/
default.nix
46 lines (43 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
{ jacobi ? import
(fetchTarball {
name = "jpetrucciani-2023-12-22";
url = "https://github.com/jpetrucciani/nix/archive/6ffe4b6bda332269593a314d7d606d7c5ae02da5.tar.gz";
sha256 = "01ba1y8v8my7s85wf36mmin29rln1lq1idhj88f0yn8fk7qg752i";
})
{ }
}:
let
name = "hubspot3";
tools = with jacobi; {
cli = [
gnumake
jq
nixpkgs-fmt
];
python = [
(python311.withPackages (p: with p; [
fire
# testing
black
mypy
pytest
pytest-cov
setuptools
tox
]))
];
scripts = [
(writeShellScriptBin "prospector" ''
${prospector}/bin/prospector $@
'')
(writeShellScriptBin "test_actions" ''
export DOCKER_HOST=$(${jacobi.docker-client}/bin/docker context inspect --format '{{.Endpoints.docker.Host}}')
${jacobi.act}/bin/act --container-architecture linux/amd64 -r --rm
'')
];
};
env = jacobi.enviro {
inherit name tools;
};
in
env