This repository was archived by the owner on Feb 3, 2025. It is now read-only.
File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 17
17
pkgs = import nixpkgs { inherit system overlays ; } ;
18
18
rust = pkgs . rust-bin . fromRustupToolchainFile ./rust-toolchain.toml ;
19
19
inputs = [
20
- rust
20
+ rust
21
21
pkgs . rust-analyzer
22
22
pkgs . openssl
23
23
pkgs . zlib
27
27
pkgs . wasm-pack
28
28
pkgs . wasm-bindgen-cli
29
29
pkgs . binaryen
30
- pkgs . clang
30
+ pkgs . clang
31
31
pkgs . corepack_20
32
32
pkgs . nodejs_20
33
+ ] ++ pkgs . lib . optionals ( ! pkgs . stdenv . isDarwin ) [
34
+ # Add firefox deps only on non-darwin.
35
+ # darwin is listed in badPlatforms in pkgs.firefox's meta.
33
36
pkgs . firefox
34
37
pkgs . geckodriver
35
- ] ;
38
+ ] ;
36
39
in
37
40
{
38
41
defaultPackage = pkgs . rustPlatform . buildRustPackage {
47
50
48
51
49
52
devShell = pkgs . mkShell {
50
- packages = inputs ;
53
+ packages = inputs ;
51
54
shellHook = ''
52
- export LIBCLANG_PATH=${ pkgs . libclang . lib } /lib/
55
+ export LIBCLANG_PATH=${ pkgs . libclang . lib } /lib/
53
56
export LD_LIBRARY_PATH=${ pkgs . openssl } /lib:$LD_LIBRARY_PATH
54
57
export CC_wasm32_unknown_unknown=${ pkgs . llvmPackages_14 . clang-unwrapped } /bin/clang-14
55
58
export CFLAGS_wasm32_unknown_unknown="-I ${ pkgs . llvmPackages_14 . libclang . lib } /lib/clang/14.0.6/include/"
56
59
'' ;
57
- } ;
60
+ } ;
58
61
}
59
62
) ;
60
63
}
You can’t perform that action at this time.
0 commit comments