-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (41 loc) · 936 Bytes
/
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
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/release-22.11";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = {
self,
nixpkgs,
utils,
rust-overlay,
}:
utils.lib.eachDefaultSystem (system: let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in rec {
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
targets = [ "wasm32-unknown-unknown" ];
})
rustc
cargo
bacon
cargo-edit
cargo-outdated
clippy
cargo-audit
hyperfine
valgrind
wasm-pack
pkg-config
nodejs
];
buildInputs = with pkgs; [openssl];
OPENSSL_NO_VENDOR = 1;
};
});
}