summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/compression
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-10-10 12:02:03 +0000
committerGitHub <noreply@github.com>2021-10-10 12:02:03 +0000
commit335de1a8800a04fcee8d3d25e9f7e10387eec496 (patch)
treeef102cdb9d3a25a55c476e6b724f83945e44b7d2 /pkgs/tools/compression
parentf89ef2c995f858d45f25788b03f6cd26cb7ce5a1 (diff)
parentfb7965dde622403d0efbb30876c2c382c83b9265 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r--pkgs/tools/compression/crabz/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/compression/crabz/default.nix b/pkgs/tools/compression/crabz/default.nix
new file mode 100644
index 000000000000..ab5cc94b43a1
--- /dev/null
+++ b/pkgs/tools/compression/crabz/default.nix
@@ -0,0 +1,39 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, cmake
+, stdenv
+, libiconv
+, CoreFoundation
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "crabz";
+ version = "0.7.2";
+
+ src = fetchFromGitHub {
+ owner = "sstadick";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0ch9cqarsakihg9ymbdm0ka6wz77z84n4g6cdlcskczc5g3b9gp9";
+ };
+
+ cargoSha256 = "sha256-nrCYlhq/f8gk3NmltAg+xppRJ533ooEpetWvaF2vmP0=";
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = lib.optionals stdenv.isDarwin [
+ libiconv
+ CoreFoundation
+ Security
+ ];
+
+ meta = with lib; {
+ description = "A cross platform, fast, compression and decompression tool";
+ homepage = "https://github.com/sstadick/crabz";
+ changelog = "https://github.com/sstadick/crabz/blob/v${version}/CHANGELOG.md";
+ license = with licenses; [ unlicense /* or */ mit ];
+ maintainers = with maintainers; [ figsoda ];
+ };
+}