From eab9ad9015a85a615ea34bcd10eb2aea62aabc12 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sun, 13 Apr 2025 18:00:00 +0200 Subject: [PATCH] hmm: use writableTmpDirAsHomeHook --- pkgs/by-name/hm/hmm/package.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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";