diff options
author | figsoda <figsoda@pm.me> | 2021-10-09 19:54:08 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-10-09 19:55:04 -0400 |
commit | fbb2cfd0bb72cd18d523b2b99807c76a3f7d57c4 (patch) | |
tree | 39e19a6b7fcc447640c30005a8d41a5b51e4a667 /pkgs/tools/compression | |
parent | a74daa0ec496a1039de74075d4db093764b2a8ec (diff) |
crabz: init at 0.7.2
Diffstat (limited to 'pkgs/tools/compression')
-rw-r--r-- | pkgs/tools/compression/crabz/default.nix | 39 |
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 ]; + }; +} |