Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, cmake 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "crabz"; 9 version = "0.8.1"; 10 11 src = fetchFromGitHub { 12 owner = "sstadick"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "sha256-w/e0NFmBsYNEECT+2zHEm/UUpp5LxPYr0BdKikT2o1M="; 16 }; 17 18 cargoSha256 = "sha256-9VOJeRvyudZSCaUZ1J9gHMEoWXEnEhCZPxvfYGRKzj0="; 19 20 nativeBuildInputs = [ cmake ]; 21 22 meta = with lib; { 23 description = "A 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 }; 29}