Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pkgs/by-name/nu/nushell-plugin-clipboard/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
pname = "nu_plugin_clipboard";
version = "0.110.0";

src = fetchFromGitHub {
owner = "fmotalleb";
repo = "nu_plugin_clipboard";
tag = "v${finalAttrs.version}";
hash = "sha256-9SFQJJun/7Ze3+P4zNJu+U5VOjQiM5VfPieu+2fNIXA=";
};

cargoHash = "sha256-tJ+xxrQHvX2tk1CMSn1wL7VrnqA4znzaaBuD3oyrzx4=";

passthru.update-script = nix-update-script { };

meta = {
description = "A nushell plugin to copy text into clipboard or get text from it. supports json<->object/table conversion out of box";
homepage = "https://github.com/fmotalleb/nu_plugin_clipboard";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ philocalyst ];
mainProgram = "nu_plugin_clipboard";
platforms = lib.platforms.unix ++ lib.platforms.windows;
};
})
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9162,6 +9162,7 @@ with pkgs;
inherit dbus;
};
skim = callPackage ../by-name/nu/nushell-plugin-skim/package.nix { };
clipboard = callPackage ../by-name/nu/nushell-plugin-clipboard/package.nix { };
semver = callPackage ../by-name/nu/nushell-plugin-semver/package.nix { };
hcl = callPackage ../by-name/nu/nushell-plugin-hcl/package.nix { };
desktop_notifications =
Expand Down
Loading