diff --git a/pkgs/by-name/hm/hmm/package.nix b/pkgs/by-name/hm/hmm/package.nix index 9a749f166e8d..270227b33aea 100644 --- a/pkgs/by-name/hm/hmm/package.nix +++ b/pkgs/by-name/hm/hmm/package.nix @@ -3,6 +3,7 @@ rustPlatform, fetchCrate, perl, + writableTmpDirAsHomeHook, }: rustPlatform.buildRustPackage rec { @@ -20,15 +21,12 @@ rustPlatform.buildRustPackage rec { nativeCheckInputs = [ perl + writableTmpDirAsHomeHook ]; # FIXME: remove patch when upstream version of rustc-serialize is updated # https://github.com/NixOS/nixpkgs/pull/310673 cargoPatches = [ ./rustc-serialize-fix.patch ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = with lib; { description = "Small command-line note-taking app"; homepage = "https://github.com/samwho/hmm";