mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
73adeb81ad
Diff: https://github.com/orhun/rustypaste-cli/compare/v0.4.0...v0.5.0 Changelog: https://github.com/orhun/rustypaste-cli/blob/v0.5.0/CHANGELOG.md
34 lines
811 B
Nix
34 lines
811 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "rustypaste-cli";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orhun";
|
|
repo = "rustypaste-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-lMXd/wllk/67W3dJr/ps36s/p+tMCyu2HU9gWYubejw=";
|
|
};
|
|
|
|
cargoHash = "sha256-6ddjSP072+jYjPVcTZcQndM1pElUE30hU3M/sf5Lnsk=";
|
|
|
|
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";
|
|
};
|
|
}
|