Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
66 lines (63 loc) · 1.63 KB
/
Copy pathflake.nix
File metadata and controls
66 lines (63 loc) · 1.63 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
chartpress = pkgs.python3Packages.buildPythonApplication {
pname = "chartpress";
version = "2.3.0";
pyproject = true;
build-system = with pkgs.python3Packages; [ setuptools ];
propagatedBuildInputs = with pkgs.python3Packages; [ docker ruamel-yaml ];
src = pkgs.fetchFromGitHub {
owner = "jupyterhub";
repo = "chartpress";
rev = "2.3.0";
sha256 = "sha256-HBfXiz06nlScy2wbL2fFR5uopfxDNxLZpgoTQWBNn/U=";
};
};
devshellPkgs = with pkgs; [
jq
yq-go
go
gopls
gotools
go-tools
gore
golangci-lint
kind
kubectl
docker
k9s
python312
chartpress
azure-cli
kubernetes-helm
gcc
];
in {
formatter = pkgs.alejandra;
devShells = {
default = pkgs.mkShellNoCC {
buildInputs = devshellPkgs;
};
eike = pkgs.mkShellNoCC {
buildInputs = devshellPkgs;
## this is the naespace the operator runs in when doing "make run"
RELEASE_NAMESPACE = "default";
RENKU_ENV = "default";
shellHook = ''
export FLAKE_ROOT="$(git rev-parse --show-toplevel)"
export KUBECONFIG=~/.kube/config_kind
'';
};
};
});
}