generated from EC528-Fall-2024/ec528-fall-2024-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
59 lines (59 loc) · 1.47 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs =
{
self,
nixpkgs,
}:
{
packages.x86_64-linux = with (import nixpkgs { system = "x86_64-linux"; }); rec {
csi = rustPlatform.buildRustPackage {
name = "csi";
src = ./csi;
cargoLock = {
lockFile = ./csi/Cargo.lock;
};
nativeBuildInputs = [ protobuf ];
};
csi-node = dockerTools.streamLayeredImage {
name = "csi-node";
tag = "latest";
contents = [
csi
interposer
];
config.Entrypoint = [ "/bin/csi-node" ];
};
interposer = stdenv.mkDerivation {
name = "interposer";
src = ./fuse;
nativeBuildInputs = [
meson
ninja
cmake
pkg-config
];
buildInputs = [
fuse3
protobuf
grpc
prometheus-cpp
(opentelemetry-cpp.overrideAttrs rec {
version = "1.17.0";
src = fetchFromGitHub {
owner = "open-telemetry";
repo = "opentelemetry-cpp";
rev = "refs/tags/v${version}";
hash = "sha256-Z8YHXLoY0uwSwy60izqNPomfUV6UcTeWV3/eeW8p8dk=";
};
})
abseil-cpp
nlohmann_json
];
dontUseCmakeConfigure = true;
};
};
};
}