btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / cr / crabz / package.nix
blobbbdbdacadc79374c287de6900803019447e84bc3
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , cmake
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "crabz";
9   version = "0.10.0";
11   src = fetchFromGitHub {
12     owner = "sstadick";
13     repo = pname;
14     rev = "v${version}";
15     sha256 = "sha256-GJHxo4WD/XMudwxOHdNwY1M+b/DFJMpU0uD3sOvO5YU=";
16   };
18   cargoHash = "sha256-T+Sdzts7gzkG2EFcKrkVDUIq2V34PBdW3oyxMUcCWaI=";
20   nativeBuildInputs = [ cmake ];
22   meta = with lib; {
23     description = "Cross platform, fast, compression and decompression tool";
24     homepage = "https://github.com/sstadick/crabz";
25     changelog = "https://github.com/sstadick/crabz/blob/v${version}/CHANGELOG.md";
26     license = with licenses; [ unlicense /* or */ mit ];
27     maintainers = with maintainers; [ figsoda ];
28     mainProgram = "crabz";
29   };