Skip to content

Commit 70938fc

Browse files
authored
Merge pull request #9 from serokell/zhenya/ops900-new-npm
[OPS-900] Fix mkNodeModules for npm 6.11.3
2 parents c1d3795 + 8687b48 commit 70938fc

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

default.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ with stdenv.lib; let
7676
yarnAlias = ''yarn() { ${yarnCmd} $yarnFlags "$@"; }'';
7777

7878
npmFlagsYarn = [ "--offline" "--script-shell=${shellWrap}/bin/npm-shell-wrap.sh" ];
79-
npmFlagsNpm = [ "--cache=./npm-cache" "--nodedir=${_nodejs}" ] ++ npmFlagsYarn;
79+
npmFlagsNpm = [
80+
# `npm ci` treats cache parameter differently since npm 6.11.3:
81+
"--cache=${if versionAtLeast _nodejs.version "10.17.0" then "./npm-cache/_cacache" else "./npm-cache"}"
82+
"--nodedir=${_nodejs}"
83+
] ++ npmFlagsYarn;
8084

8185
commonEnv = {
8286
XDG_CONFIG_DIRS = ".";

nix/sources.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"homepage": null,
66
"owner": "NixOS",
77
"repo": "nixpkgs",
8-
"rev": "a36b2925a5082e821ad80b3a7bfedcc6e488b91c",
9-
"sha256": "14sx173cg1g1lpd5hcarxxz8n78jsffr6pv9l05a58aq0ilgk328",
8+
"rev": "93223f5cc35ccee76d000bb1a18781d35b99878b",
9+
"sha256": "0a52g32w9rxkdq81avzbx8vy8bdbxzkbh41qg8mdxl7wb9qcqv9v",
1010
"type": "tarball",
11-
"url": "https://github.com/NixOS/nixpkgs/archive/a36b2925a5082e821ad80b3a7bfedcc6e488b91c.tar.gz",
11+
"url": "https://github.com/NixOS/nixpkgs/archive/93223f5cc35ccee76d000bb1a18781d35b99878b.tar.gz",
1212
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
1313
}
1414
}

0 commit comments

Comments
 (0)