about summary refs log tree commit diff
path: root/pkgs/tools/text/clima
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-08-22 10:25:20 -0400
committerfigsoda <figsoda@pm.me>2023-08-22 10:25:20 -0400
commitbe74b2f61e9314459f7381aab2f265857a6c5f2d (patch)
treee5c733c35cfcc170a98162e8825bcf8017553496 /pkgs/tools/text/clima
parent044b56eb42730951627bbb7369bc7b2278207dec (diff)
downloadnixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.tar
nixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.tar.gz
nixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.tar.bz2
nixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.tar.lz
nixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.tar.xz
nixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.tar.zst
nixlib-be74b2f61e9314459f7381aab2f265857a6c5f2d.zip
clima: init at 1.1.0
https://github.com/Canop/clima
Diffstat (limited to 'pkgs/tools/text/clima')
-rw-r--r--pkgs/tools/text/clima/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/text/clima/default.nix b/pkgs/tools/text/clima/default.nix
new file mode 100644
index 000000000000..cfa39590a714
--- /dev/null
+++ b/pkgs/tools/text/clima/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, stdenv
+, darwin
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "clima";
+  version = "1.1.0";
+
+  src = fetchFromGitHub {
+    owner = "Canop";
+    repo = "clima";
+    rev = "v${version}";
+    hash = "sha256-CRnAxhkuCTyHR4uQofA51Dm3+YKqm3iwBkFNkbLTv1A=";
+  };
+
+  cargoHash = "sha256-jKY+Ta6lqMBUlqSViKk3W0CiO8oU+ucmleKDYRA54HQ=";
+
+  buildInputs = lib.optionals stdenv.isDarwin [
+    darwin.apple_sdk.frameworks.Security
+  ];
+
+  meta = with lib; {
+    description = "A minimal viewer for Termimad";
+    homepage = "https://github.com/Canop/clima";
+    changelog = "https://github.com/Canop/clima/releases/tag/${src.rev}";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+    mainProgram = "clima";
+  };
+}