mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 22:04:20 +00:00
34 lines
811 B
Nix
34 lines
811 B
Nix
|
{ 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";
|
||
|
};
|
||
|
}
|