From bfa15b30c8cdc568355ad3c8e1208413debbd5aa Mon Sep 17 00:00:00 2001 From: traxys Date: Wed, 23 Nov 2022 21:30:40 +0100 Subject: [PATCH] oscclip: init at 0.4.1 --- pkgs/tools/misc/oscclip/default.nix | 34 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/misc/oscclip/default.nix diff --git a/pkgs/tools/misc/oscclip/default.nix b/pkgs/tools/misc/oscclip/default.nix new file mode 100644 index 000000000000..a22490633d8f --- /dev/null +++ b/pkgs/tools/misc/oscclip/default.nix @@ -0,0 +1,34 @@ +{ fetchFromGitHub +, python3Packages +, stdenv +, writeText +, lib +}: + +python3Packages.buildPythonApplication rec { + pname = "oscclip"; + version = "0.4.1"; + + format = "pyproject"; + + src = fetchFromGitHub { + owner = "rumpelsepp"; + repo = "oscclip"; + rev = "v${version}"; + sha256 = "sha256-WQvZn+SWamEqEXPutIZVDZTIczybtHUG9QsN8XxUeg8="; + }; + + nativeBuildInputs = with python3Packages; [ poetry-core ]; + + meta = with lib; { + description = "A program that allows to copy/paste from a terminal using osc-52 control sequences."; + longDescription = '' + oscclip provides two commands: osc-copy and osc-paste. These commands allow to interact with the clipboard through the terminal directly. + This means that they work through ssh sessions for example (given that the terminal supports osc-52 sequences). + ''; + homepage = "https://github.com/rumpelsepp/oscclip"; + + license = licenses.gpl3Only; + maintainers = [ maintainers.traxys ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3d26ccb74c05..e2f256607169 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10303,6 +10303,8 @@ with pkgs; operator-sdk = callPackage ../development/tools/operator-sdk { }; + oscclip = callPackage ../tools/misc/oscclip { }; + owncast = callPackage ../servers/owncast { }; update-dotdee = with python3Packages; toPythonApplication update-dotdee;