diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index dda73802e1e081..907ee6a9b1d424 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9107,6 +9107,12 @@ githubId = 33523827; name = "Harrison Thorne"; }; + harryposner = { + email = "nixpkgs@harryposner.com"; + github = "harryposner"; + githubId = 23534120; + name = "Harry Posner"; + }; haruki7049 = { email = "tontonkirikiri@gmail.com"; github = "haruki7049"; diff --git a/pkgs/by-name/os/osc/package.nix b/pkgs/by-name/os/osc/package.nix new file mode 100644 index 00000000000000..c78c828f7e422e --- /dev/null +++ b/pkgs/by-name/os/osc/package.nix @@ -0,0 +1,29 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "osc"; + version = "0.4.7"; + vendorHash = "sha256-POtQWIjPObsfa3YZ1dLZgedZFUcc4HeTWjU20AucoKc="; + + src = fetchFromGitHub { + owner = "theimpostor"; + repo = "osc"; + tag = "v${version}"; + hash = "sha256-MfEBbYT99tEtlOMmdl3iq2d07KYsN1tu5tDRFW3676g="; + }; + + 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"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ harryposner ]; + }; +}