Skip to content

Commit 7f5bf91

Browse files
yaml-language-server: 1.15.0 -> 1.17.0 , use writableTmpDirAsHomeHook (NixOS#393115)
2 parents fe70534 + eae90bb commit 7f5bf91

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,33 @@
55
fixup-yarn-lock,
66
makeWrapper,
77
nodejs,
8+
writableTmpDirAsHomeHook,
89
stdenv,
910
yarn,
1011
}:
1112

1213
stdenv.mkDerivation rec {
1314
pname = "yaml-language-server";
14-
version = "1.15.0";
15+
version = "1.17.0";
1516

1617
src = fetchFromGitHub {
1718
owner = "redhat-developer";
1819
repo = "yaml-language-server";
1920
tag = version;
20-
hash = "sha256-Y3Q/y9UIiy7US8Jl4vxT0Pfw8h3hiXK+Cu9TEQHyAaA=";
21+
hash = "sha256-YGPktMZxYi6eihCDc8JIfN/Ht2uu3wGKoKPJWlDKu+g=";
2122
};
2223

2324
offlineCache = fetchYarnDeps {
2425
yarnLock = "${src}/yarn.lock";
25-
hash = "sha256-zHcxZ4VU6CGux72Nsy0foU4gFshK1wO/LTfnwOoirmg=";
26+
hash = "sha256-2OVxvvijnfB8Bytgoaybyx4p66nD/aahtyjxLf8womE=";
2627
};
2728

2829
nativeBuildInputs = [
2930
makeWrapper
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)