Merge pull request #235088 from figsoda/rpaste

This commit is contained in:
figsoda 2023-06-01 09:26:31 -04:00 committed by GitHub
commit b5c5d7b9c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "rustypaste-cli";
version = "0.4.0";
src = fetchFromGitHub {
owner = "orhun";
repo = "rustypaste-cli";
rev = "v${version}";
hash = "sha256-Jl7fytDIW6MLY6VX7rDuX9PcZaIqENQbUTMUJKCa8Mg=";
};
cargoHash = "sha256-hICwrgzNpyYmNW1gEKgTsSjWyqCaOHc4X37O0R2oSzY=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "A CLI tool for rustypaste";
homepage = "https://github.com/orhun/rustypaste-cli";
changelog = "https://github.com/orhun/rustypaste-cli/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "rpaste";
};
}

View File

@ -12109,6 +12109,8 @@ with pkgs;
rustypaste = callPackage ../servers/rustypaste { };
rustypaste-cli = callPackage ../tools/misc/rustypaste-cli { };
rw = callPackage ../tools/misc/rw { };
rwc = callPackage ../tools/system/rwc { };