nixos/filesystems: don't silently ignore label when device is set (#361418)
[NixPkgs.git] / pkgs / by-name / hm / hmm / package.nix
blobc20f3a9626f51b7a5f4a352ecb6193d7e857d6a6
1 { lib
2 , rustPlatform
3 , fetchCrate
4 , perl
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "hmm";
9   version = "0.6.0";
11   src = fetchCrate {
12     pname = "hmmcli";
13     inherit version;
14     hash = "sha256-WPePzqZ2iGeJ7kzTj8eg7q1JEjw91WY7gViJJ46SLRY=";
15   };
17   cargoHash = "sha256-CQnM7pFnk4LcstKllhbeohbrggKV6MBQy03oq7DEkP4=";
19   nativeCheckInputs = [
20     perl
21   ];
22   # FIXME: remove patch when upstream version of rustc-serialize is updated
23   # https://github.com/NixOS/nixpkgs/pull/310673
24   cargoPatches = [ ./rustc-serialize-fix.patch ];
26   preCheck = ''
27     export HOME=$(mktemp -d)
28   '';
30   meta = with lib; {
31     description = "Small command-line note-taking app";
32     homepage = "https://github.com/samwho/hmm";
33     changelog = "https://github.com/samwho/hmm/releases/tag/v${version}";
34     license = licenses.mit;
35     maintainers = with maintainers; [ figsoda ];
36   };