Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, rustPlatform 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "choose"; 8 version = "1.3.4"; 9 10 src = fetchFromGitHub { 11 owner = "theryangeary"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "sha256-yW1quDyQn2xhrlhhPj9DKq7g8LlYKvEKDFj3xSagRTU="; 15 }; 16 17 cargoSha256 = "sha256-0INC0LFzlnFnt5pCiU4xePxU8a6GiU1L8bg7zcuFl2k="; 18 19 meta = with lib; { 20 description = "A human-friendly and fast alternative to cut and (sometimes) awk"; 21 homepage = "https://github.com/theryangeary/choose"; 22 license = licenses.gpl3; 23 maintainers = with maintainers; [ sohalt ]; 24 }; 25}