mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Merge pull request #235088 from figsoda/rpaste
This commit is contained in:
commit
b5c5d7b9c9
33
pkgs/tools/misc/rustypaste-cli/default.nix
Normal file
33
pkgs/tools/misc/rustypaste-cli/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user