depot/third_party/nixpkgs/pkgs/applications/misc/hmm/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
875 B
Nix

{ 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 = "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 ];
};
}