Files
nixpkgs/pkgs/by-name/os/osc/package.nix
2025-05-05 18:44:59 +00:00

33 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "osc";
version = "0.4.8";
src = fetchFromGitHub {
owner = "theimpostor";
repo = "osc";
tag = "v${version}";
hash = "sha256-XVFNcQH4MFZKmuOD9b3t320/hE+s+3igjlyHBWGKr0Q=";
};
vendorHash = "sha256-k+4m9y7oAZqTr8S0zldJk5FeI3+/nN9RggKIfiyxzDI=";
meta = {
description = "Command line tool to access the system clipboard from anywhere using the ANSI OSC52 sequence";
longDescription = ''
osc provides the commands osc copy, which copies stdin to the system clipboard, and osc paste, which outputs system clipboard contents to stdout.
System clipboard access includes writing (i.e. copy) and reading (i.e. paste), even while logged into a remote machine via ssh.
'';
homepage = "https://github.com/theimpostor/osc";
changelog = "https://github.com/theimpostor/osc/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ harryposner ];
mainProgram = "osc";
};
}