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