mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
75fd35131c
Diff: https://github.com/orhun/rustypaste-cli/compare/v0.7.0...v0.8.0 Changelog: https://github.com/orhun/rustypaste-cli/blob/v0.8.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.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orhun";
|
|
repo = "rustypaste-cli";
|
|
rev = "v${version}";
|
|
hash = "sha256-FfAX7a94EY2Y+FHE33UdxbLbFlSq69flvx3uPYlvkT4=";
|
|
};
|
|
|
|
cargoHash = "sha256-FVhOxJE1sI9Ka2teDU8xnbuDvtdIwubuE7+3ypo4+yQ=";
|
|
|
|
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";
|
|
};
|
|
}
|