-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
48 lines (41 loc) · 1.01 KB
/
default.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
44
45
46
47
48
# THIS is not working - dont know
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { };
in
mkShell {
buildInputs = with pkgs; [
pkg-config
llvmPackages.clang-unwrapped
llvmPackages.bintools #lld
wasm-pack
#rustc
rustc-wasm32 #to get rid of rustc twerks
unstable.cargo
openssl
#rustup
rustfmt
nodejs_21
yarn
nodePackages.typescript
nodePackages.prettier
nodePackages.eslint
libelf
cmake
libiconv
zlib
rustup
];
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
RUST_SRC_PATH = "${rust.packages.stable.rustPlatform.rustLibSrc}";
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages_latest.libclang.lib ];
#RUSTFLAGS="-C linker=lld";
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER = "wasm-ld";
#RUST_BACKTRACE = 1;
#CC ="clang";
#CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER = "gcc";
shellHook = ''
exec zsh
'';
}