-
Notifications
You must be signed in to change notification settings - Fork 0
/
devenv.nix
35 lines (31 loc) · 868 Bytes
/
devenv.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
{ pkgs, ... }:
{
env.NODE_OPTIONS = "--openssl-legacy-provider";
packages = with pkgs; [
nodejs
yarn
python2 # for node-sass
wasm-pack
# cargo
pkg-config openssl_1_1 # fix the "failed to run custom build command for openssl-sys" error
];
enterShell = ''
# cargo install cargo-i18n
'';
# XXX : ne fonctionne pas, utiliser `make dev`
# https://devenv.sh/languages/
languages.rust.enable = true;
languages.rust.toolchain.rustc = pkgs.rustc.override {
stdenv = pkgs.stdenv.override{
targetPlatform.isRedox = false;
targetPlatform.isMusl = false;
targetPlatform.isStatic = false;
targetPlatform.parsed = {
cpu = { name = "wasm32"; };
vendor = {name = "unknown";};
kernel = {name = "unknown";};
abi = {name = "unknown";};
};
};
};
}