about summary refs log tree commit diff
path: root/pkgs/tools/compression
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-03-12 22:42:45 -0400
committerfigsoda <figsoda@pm.me>2023-03-12 22:42:45 -0400
commiteb4034bd00cd9d7612cd6d0a3ffd2ef08c09df97 (patch)
tree9d9bd3a555ab377529a5ddc04ba1dc3e7aba9b03 /pkgs/tools/compression
parentb453fb34c23ccf8b8f366990d7357a9ae065988c (diff)
unzrip: init at unstable-2023-03-13
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r--pkgs/tools/compression/unzrip/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/compression/unzrip/default.nix b/pkgs/tools/compression/unzrip/default.nix
new file mode 100644
index 0000000000000..e3acb987b5c5f
--- /dev/null
+++ b/pkgs/tools/compression/unzrip/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, zstd
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "unzrip";
+  version = "unstable-2023-03-13";
+
+  src = fetchFromGitHub {
+    owner = "quininer";
+    repo = "unzrip";
+    rev = "bd2dffd43c3235857500190571602f3ce58c5f70";
+    hash = "sha256-Ih47xF4JYQf10RuTnfJJGUAJwyxDxCAdTTCdwGf4i/U=";
+  };
+
+  cargoHash = "sha256-11UESSKvTcr6Wa0cASRSQ55kBbRL5AelI6thv3oi0sI=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    zstd
+  ];
+
+  meta = with lib; {
+    description = "Unzip implementation, support for parallel decompression, automatic detection encoding";
+    homepage = "https://github.com/quininer/unzrip";
+    license = licenses.mit;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}