blob: 4f45c09ef63b12d32b1441716ea5fa318fb6ea97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib
, rustPlatform
, fetchCrate
, perl
}:
rustPlatform.buildRustPackage rec {
pname = "hmm";
version = "0.6.0";
src = fetchCrate {
pname = "hmmcli";
inherit version;
hash = "sha256-WPePzqZ2iGeJ7kzTj8eg7q1JEjw91WY7gViJJ46SLRY=";
};
cargoHash = "sha256-CQnM7pFnk4LcstKllhbeohbrggKV6MBQy03oq7DEkP4=";
nativeCheckInputs = [
perl
];
# 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 = "A small command-line note-taking app";
homepage = "https://github.com/samwho/hmm";
changelog = "https://github.com/samwho/hmm/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}
|