1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "rustypaste-cli";
9 version = "0.9.4";
10
11 src = fetchFromGitHub {
12 owner = "orhun";
13 repo = "rustypaste-cli";
14 rev = "v${version}";
15 hash = "sha256-tv5nAs5g7NWVakKUyw5PVxHJYQniV9OYm7yDXhooWU4=";
16 };
17
18 cargoHash = "sha256-Z8rybofRp4hzTbn3iT0X50fcJCn2tT3HTYTLLWTJBek=";
19
20 meta = with lib; {
21 description = "CLI tool for rustypaste";
22 homepage = "https://github.com/orhun/rustypaste-cli";
23 changelog = "https://github.com/orhun/rustypaste-cli/blob/${src.rev}/CHANGELOG.md";
24 license = licenses.mit;
25 maintainers = with maintainers; [ figsoda ];
26 mainProgram = "rpaste";
27 };
28}