-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathflake.nix
More file actions
45 lines (43 loc) · 1.23 KB
/
flake.nix
File metadata and controls
45 lines (43 loc) · 1.23 KB
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in
{
devShells = forAllSystems (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
default = pkgs.mkShell {
buildInputs = with pkgs; [
binaryen
cargo-nextest
jq
pnpm
rustup
tree-sitter
wasm-bindgen-cli
wasm-pack
wild-unwrapped
];
shellHook = ''
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
rustup component add clippy rustfmt
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup component add rust-src --toolchain nightly
'';
CARGO_TARGET_X86_64_LINUX_UNKNOWN_GNU_RUSTFLAGS = "-C link-arg=--ld-path=${pkgs.wild}/bin/wild";
CARGO_TARGET_X86_64_LINUX_UNKNOWN_GNU_LINKER = "clang";
};
}
);
};
}