Skip to content

Commit eae90bb

Browse files
committed
yaml-language-server: use writableTmpDirAsHomeHook
1 parent 797ee06 commit eae90bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkgs/by-name/ya/yaml-language-server/package.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
fixup-yarn-lock,
66
makeWrapper,
77
nodejs,
8+
writableTmpDirAsHomeHook,
89
stdenv,
910
yarn,
1011
}:
@@ -30,6 +31,7 @@ stdenv.mkDerivation rec {
3031
fixup-yarn-lock
3132
yarn
3233
nodejs
34+
writableTmpDirAsHomeHook
3335
];
3436

3537
# NodeJS is also needed here so that script interpreter get patched
@@ -40,7 +42,6 @@ stdenv.mkDerivation rec {
4042
configurePhase = ''
4143
runHook preConfigure
4244
43-
export HOME=$(mktemp -d)
4445
yarn config --offline set yarn-offline-mirror "$offlineCache"
4546
fixup-yarn-lock yarn.lock
4647
yarn --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive install

0 commit comments

Comments
 (0)