about summary refs log tree commit diff
path: root/pkgs/tools/text/zet
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-04-19 12:01:31 -0400
committerfigsoda <figsoda@pm.me>2023-04-19 12:01:31 -0400
commit6733c3a9ddeabae8f6edc79b4ab695785fe92fe0 (patch)
tree039578f1be490be8b192c2f27b24e60452181f79 /pkgs/tools/text/zet
parent2cef51e6534a84ca3233b5b1820813e1eb1848a6 (diff)
zet: init at 1.0.0
Diffstat (limited to 'pkgs/tools/text/zet')
-rw-r--r--pkgs/tools/text/zet/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/text/zet/default.nix b/pkgs/tools/text/zet/default.nix
new file mode 100644
index 0000000000000..50d149f4e6559
--- /dev/null
+++ b/pkgs/tools/text/zet/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "zet";
+  version = "1.0.0";
+
+  src = fetchFromGitHub {
+    owner = "yarrow";
+    repo = "zet";
+    rev = "v${version}";
+    hash = "sha256-IjM+jSb+kdML0zZGuz9+9wrFzQCujn/bg9/vaTzMtUs=";
+  };
+
+  cargoHash = "sha256-kHIOsSR7ZxBzp4dtm2hbi8ddtlQ86x5EASk5HFmnhFo=";
+
+  # tests fail with `--release`
+  # https://github.com/yarrow/zet/pull/7
+  checkType = "debug";
+
+  meta = with lib; {
+    description = "CLI utility to find the union, intersection, set difference, etc of files considered as sets of lines";
+    homepage = "https://github.com/yarrow/zet";
+    changelog = "https://github.com/yarrow/zet/blob/${src.rev}/CHANGELOG.md";
+    license = with licenses; [ asl20 mit ];
+    maintainers = with maintainers; [ figsoda ];
+  };
+}