-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathdefault.nix
More file actions
46 lines (43 loc) · 1.08 KB
/
Copy pathdefault.nix
File metadata and controls
46 lines (43 loc) · 1.08 KB
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
{ pkgs ? import
(fetchTarball {
name = "jpetrucciani-2025-03-27";
url = "https://github.com/jpetrucciani/nix/archive/83eb90f14b4c3343c7ed98d461e094087504f757.tar.gz";
sha256 = "0df6grw1i5p2hpxlbws4lzqay1b44dmsqg02gwvi4fzz42jin1cv";
})
{ }
}:
let
name = "hubspot3";
tools = with pkgs; {
cli = [
gnumake
];
python = [
(python311.withPackages (p: with p; [
fire
# testing
black
mypy
pytest
pytest-cov
setuptools
tox
]))
];
scripts = pkgs.lib.attrsets.attrValues scripts;
};
scripts = with pkgs; {
test_actions = writeShellScriptBin "test_actions" ''
export DOCKER_HOST=$(${docker-client}/bin/docker context inspect --format '{{.Endpoints.docker.Host}}')
${act}/bin/act --container-architecture linux/amd64 -r --rm
'';
};
paths = pkgs.lib.flatten [ (builtins.attrValues tools) ];
env = pkgs.buildEnv {
inherit name paths; buildInputs = paths;
};
in
(env.overrideAttrs (_: {
inherit name;
NIXUP = "0.0.9";
})) // { inherit scripts; }