-
Notifications
You must be signed in to change notification settings - Fork 4
/
shell.nix
39 lines (35 loc) · 975 Bytes
/
shell.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
let
moz_overlay = import (builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/6eabade97bc28d707a8b9d82ad13ef143836736e.tar.gz");
pkgs = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/23.05.tar.gz";
}) { overlays = [ moz_overlay ]; };
in
pkgs.mkShell {
name = "rivet-cli";
buildInputs = with pkgs; [
cacert
# pkgs.latest.rustChannels.stable.rust
(pkgs.latest.rustChannels.stable.rust.override {
extensions = [ "rust-src" "rust-std" ];
targets = [
"x86_64-unknown-linux-gnu"
"x86_64-pc-windows-msvc"
"x86_64-apple-darwin"
"aarch64-apple-darwin"
];
})
pkg-config
perl
# Libraries
openssl
libiconv
zlib
shellcheck
] ++ (
pkgs.lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.SystemConfiguration
]
);
}