about summary refs log tree commit diff
path: root/pkgs/tools/misc/oscclip/default.nix
diff options
context:
space:
mode:
authortraxys <quentin+dev@familleboyer.net>2022-11-23 21:30:40 +0100
committerQuentin Boyer <quentin.boyer@atos.net>2023-01-14 13:52:24 +0100
commitbfa15b30c8cdc568355ad3c8e1208413debbd5aa (patch)
treeed0fec716088e7c993b1f19f4b6a4172401dcb0e /pkgs/tools/misc/oscclip/default.nix
parent9110eca901936b41d17fd88a1868184e872348b0 (diff)
oscclip: init at 0.4.1
Diffstat (limited to 'pkgs/tools/misc/oscclip/default.nix')
-rw-r--r--pkgs/tools/misc/oscclip/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/misc/oscclip/default.nix b/pkgs/tools/misc/oscclip/default.nix
new file mode 100644
index 0000000000000..a22490633d8f2
--- /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 ];
+  };
+}