hmm: use writableTmpDirAsHomeHook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user