Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Oct 21, 2024
1 parent dfd932b commit 39a3499
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/rustypaste-cli.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:

rustPlatform.buildRustPackage rec {
pname = "rustypaste-cli";
version = "0.9.1";

src = fetchFromGitHub {
owner = "orhun";
repo = "rustypaste-cli";
rev = "v${version}";
hash = "sha256-RF4SGqaEx9/OMB5XEJNiPPPGg1uwTM5ta1gwpj8mbho=";
};

cargoHash = "sha256-UaOUEuh7NNIhXOKqHEfVRv1hXld7qmdPdazATalXvQU=";

buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];

meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ oluceps ];
mainProgram = "rustypaste-cli";
};
}

0 comments on commit 39a3499

Please sign in to comment.