From 82a276592c71d19d9c91eb960fd28d36d0c7bb2d Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 13 Jun 2023 18:17:22 -0400 Subject: [PATCH] hmm: init at 0.6.0 https://github.com/samwho/hmm --- pkgs/applications/misc/hmm/default.nix | 34 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/applications/misc/hmm/default.nix diff --git a/pkgs/applications/misc/hmm/default.nix b/pkgs/applications/misc/hmm/default.nix new file mode 100644 index 000000000000..a78b953875c2 --- /dev/null +++ b/pkgs/applications/misc/hmm/default.nix @@ -0,0 +1,34 @@ +{ lib +, rustPlatform +, fetchCrate +, perl +}: + +rustPlatform.buildRustPackage rec { + pname = "hmm"; + version = "0.6.0"; + + src = fetchCrate { + pname = "hmmcli"; + inherit version; + hash = "sha256-WPePzqZ2iGeJ7kzTj8eg7q1JEjw91WY7gViJJ46SLRY="; + }; + + cargoHash = "sha256-9Z49aPfcIdMfYCFAXsxFxcfhaLjtPod+nMFHDmvgDY0="; + + nativeCheckInputs = [ + perl + ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e08e59367e72..dda5389a1000 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31393,6 +31393,8 @@ with pkgs; hledger-web = haskell.lib.compose.justStaticExecutables haskellPackages.hledger-web; hledger-utils = with python3.pkgs; toPythonApplication hledger-utils; + hmm = callPackage ../applications/misc/hmm { }; + homebank = callPackage ../applications/office/homebank { gtk = gtk3; };