dotfiles/pkgs/nu_plugin_clipboard.nix

35 lines
757 B
Nix
Raw Normal View History

2024-08-02 17:54:48 +02:00
{
darwin,
fetchFromGitHub,
rustPlatform,
lib,
stdenv,
}:
let
inherit (darwin.apple_sdk.frameworks) AppKit IOKit;
in
rustPlatform.buildRustPackage {
name = "nu_plugin_clipboard";
version = "0.96.0";
src = fetchFromGitHub {
owner = "FMotalleb";
repo = "nu_plugin_clipboard";
2024-09-08 23:48:59 +02:00
sha256 = "sha256-N9UZJwM5aSWmFZaDAPUV7ZtgvuAPrbwrMKom3u4ok1E=";
rev = "9db14a6b7ae1f080036ca8d9abf4c5fbf81dbeaa";
2024-08-02 17:54:48 +02:00
};
buildInputs = lib.optionals stdenv.isDarwin [
AppKit
IOKit
];
2024-09-08 23:48:59 +02:00
cargoHash = "sha256-3WlmVH97kK5pJZSJiEvNTY/8X0Zhik4YIVtbReTriac=";
2024-08-02 17:54:48 +02:00
meta = with lib; {
description = "A nushell plugin to copy text into clipboard or get text from it.";
license = licenses.mit;
mainProgram = "nu_plugin_clipboard";
};
}