about summary refs log tree commit diff
path: root/pkgs/applications/misc/hmm
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-06-13 18:17:22 -0400
committerfigsoda <figsoda@pm.me>2023-06-13 18:17:22 -0400
commit82a276592c71d19d9c91eb960fd28d36d0c7bb2d (patch)
tree9f27e5db8a60c68a0a7b781d0f0f46f8af59e958 /pkgs/applications/misc/hmm
parent3f3ca021b78b23715c0f1e88ba4bd6d7edca95d3 (diff)
hmm: init at 0.6.0
https://github.com/samwho/hmm
Diffstat (limited to 'pkgs/applications/misc/hmm')
-rw-r--r--pkgs/applications/misc/hmm/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/hmm/default.nix b/pkgs/applications/misc/hmm/default.nix
new file mode 100644
index 0000000000000..a78b953875c20
--- /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 ];
+  };
+}