Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitHub, 3 lib, 4 rustPlatform, 5}: 6rustPlatform.buildRustPackage rec { 7 pname = "urlencode"; 8 version = "1.0.1"; 9 10 src = fetchFromGitHub { 11 owner = "dead10ck"; 12 repo = "urlencode"; 13 rev = "v${version}"; 14 sha256 = "sha256-LvLUbtMPVbYZMUb9vWhTscYfZPtEM5GrZme3azvVlPE="; 15 }; 16 17 cargoHash = "sha256-rHoqBrDFQ31jIHFZbHwjKHPDgMzM7gUCIhew03OYN6M="; 18 19 meta = with lib; { 20 description = "CLI utility for URL-encoding or -decoding strings"; 21 homepage = "https://github.com/dead10ck/urlencode"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ l0b0 ]; 24 mainProgram = "urlencode"; 25 }; 26}