hmm: use writableTmpDirAsHomeHook

This commit is contained in:
Daniel Nagy 2025-04-13 18:00:00 +02:00
parent 35482917cb
commit eab9ad9015
No known key found for this signature in database

View file

@ -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";