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 = "hck"; 9 version = "0.9.2"; 10 11 src = fetchFromGitHub { 12 owner = "sstadick"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "sha256-KPpvai7+El2JA97EXDCstZ66FeyVCe7w+ERDDNRZ/h8="; 16 }; 17 18 cargoSha256 = "sha256-TpwUO0BL8kambnxAUE9+l6YYkNL1WzmkTYn1YxjufdY="; 19 20 nativeBuildInputs = [ cmake ]; 21 22 meta = with lib; { 23 description = "A close to drop in replacement for cut that can use a regex delimiter instead of a fixed string"; 24 homepage = "https://github.com/sstadick/hck"; 25 changelog = "https://github.com/sstadick/hck/blob/v${version}/CHANGELOG.md"; 26 license = with licenses; [ mit /* or */ unlicense ]; 27 maintainers = with maintainers; [ figsoda ]; 28 }; 29}