-
Notifications
You must be signed in to change notification settings - Fork 53
/
flake.nix
83 lines (79 loc) · 2.52 KB
/
flake.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
description = "Kurtosis dev flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, unstable, flake-utils, ... }:
let utils = flake-utils;
in utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
unstable_pkgs = unstable.legacyPackages.${system};
node-devtools = import ./nix-pkgs/node-tools/. {
inherit pkgs system;
nodejs = pkgs.nodejs_20;
};
in {
formatter = pkgs.nixpkgs-fmt;
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs;
let
openapi-codegen-go =
import ./nix-pkgs/openapi-codegen.nix { inherit pkgs; };
grpc-tools-node =
import ./nix-pkgs/grpc-tools-node.nix { inherit pkgs; };
in [
goreleaser
go_1_20
gopls
golangci-lint
delve
enumer
go-mockery
nodejs_20
node2nix
yarn
protobuf
protoc-gen-go
protoc-gen-go-grpc
protoc-gen-connect-go
protoc-gen-grpc-web
grpc-tools
grpcui
rustc
cargo
rustfmt
rust-analyzer
clippy
libiconv
bash-completion
# local definition (see above)
openapi-codegen-go
grpc-tools-node
node-devtools.nodeDependencies
];
shellHook = ''
export CARGO_NET_GIT_FETCH_WITH_CLI=true
printf '\u001b[32m
@@@@@@@@
@@@ @@ @@@ @@@
@@@ @@ @@ @@
@ @@ @@ @@
@@ @@ @@
@@ @@ @@
@ @@ @@ @@
@ @@ @@ @@
@@ @@@ @@@ @@
@@@ @@@@@@@@
\u001b[0m
Starting Kurtosis dev shell. Setup the alias to local compiled Kurtosis cli command "ktdev" and "ktdebug" by running:
\e[32m
source ./scripts/set_kt_alias.sh
\e[0m
'
'';
};
});
}