forked from risingwavelabs/risingwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevshell.nix
60 lines (57 loc) · 1.31 KB
/
devshell.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
{ inputs
, ...
}:
{
perSystem = { pkgs, lib, ... }: {
devshells.default =
let
rust-toolchain = with pkgs;
[
((rust-bin.fromRustupToolchainFile ../../rust-toolchain).override {
extensions = [ "rust-src" "rust-analyzer" ];
})
];
in
{
imports = [
"${inputs.devshell}/extra/language/rust.nix"
];
language.rust.enableDefaultToolchain = false;
packages = rust-toolchain
# See the dependencies list in docs/developer-guide.md
++ (with pkgs; [
gcc
lld
protobuf
pkg-config
cyrus_sasl.out
gnumake
cmake
maven
jdk17_headless
tmux
postgresql
patchelf
]);
env = [
{
name = "PKG_CONFIG_PATH";
value = lib.concatStringsSep ":" (
map (pkg: "${pkg}/lib/pkgconfig") (with pkgs; [
openssl.dev
cyrus_sasl.dev
])
);
}
{
name = "LD_LIBRARY_PATH";
value = lib.makeLibraryPath (with pkgs; [
openssl
libgcc.lib
cyrus_sasl.out
]);
}
];
};
};
}