1{ fetchFromGitHub
2, lib
3, rustPlatform
4}:
5rustPlatform.buildRustPackage rec {
6 pname = "urlencode";
7 version = "1.0.1";
8
9 src = fetchFromGitHub {
10 owner = "dead10ck";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "sha256-LvLUbtMPVbYZMUb9vWhTscYfZPtEM5GrZme3azvVlPE=";
14 };
15
16 cargoSha256 = "sha256-UPw+/wVOEM+kciOr70P+gdMCxtCKQ/SXsNAWA44v4v8=";
17
18 meta = with lib; {
19 description = "A CLI utility for URL-encoding or -decoding strings";
20 homepage = "https://github.com/dead10ck/urlencode";
21 license = licenses.mit;
22 maintainers = with maintainers; [ l0b0 ];
23 };
24}