Skip to content

Commit 32ba344

Browse files
espup: use writableTmpDirAsHomeHook (NixOS#398001)
2 parents 6cda08e + c589377 commit 32ba344

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkgs/by-name/es/espup/package.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
stdenv,
1212
darwin,
1313
testers,
14+
writableTmpDirAsHomeHook,
1415
nix-update-script,
1516
}:
1617

@@ -51,9 +52,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
5152
ZSTD_SYS_USE_PKG_CONFIG = true;
5253
};
5354

54-
preCheck = ''
55-
export HOME=$(mktemp -d)
56-
'';
55+
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
5756

5857
checkFlags = [
5958
# makes network calls

0 commit comments

Comments
 (0)