at 23.11-beta 33 lines 811 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, darwin 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "rustypaste-cli"; 10 version = "0.8.0"; 11 12 src = fetchFromGitHub { 13 owner = "orhun"; 14 repo = "rustypaste-cli"; 15 rev = "v${version}"; 16 hash = "sha256-FfAX7a94EY2Y+FHE33UdxbLbFlSq69flvx3uPYlvkT4="; 17 }; 18 19 cargoHash = "sha256-FVhOxJE1sI9Ka2teDU8xnbuDvtdIwubuE7+3ypo4+yQ="; 20 21 buildInputs = lib.optionals stdenv.isDarwin [ 22 darwin.apple_sdk.frameworks.Security 23 ]; 24 25 meta = with lib; { 26 description = "A CLI tool for rustypaste"; 27 homepage = "https://github.com/orhun/rustypaste-cli"; 28 changelog = "https://github.com/orhun/rustypaste-cli/blob/${src.rev}/CHANGELOG.md"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ figsoda ]; 31 mainProgram = "rpaste"; 32 }; 33}