From aee7510bf1c4942b3ce0f73ed69476c21b896fc4 Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 21 Nov 2022 21:48:48 +0100 Subject: [PATCH] xpaste: init at 1.5 (#201602) Co-authored-by: Sandro --- pkgs/tools/text/xpaste/default.nix | 41 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/tools/text/xpaste/default.nix diff --git a/pkgs/tools/text/xpaste/default.nix b/pkgs/tools/text/xpaste/default.nix new file mode 100644 index 000000000000..4c3bb82b7161 --- /dev/null +++ b/pkgs/tools/text/xpaste/default.nix @@ -0,0 +1,41 @@ +{ lib +, fetchFromGitHub +, python3Packages +, fetchpatch +}: + +python3Packages.buildPythonApplication rec { + pname = "xpaste"; + version = "1.5"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "ossobv"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-Z9YxhVP+FUvWET91ob4SPSW+XX7/wzlgPr53vO517L4="; + }; + + propagatedBuildInputs = with python3Packages; [ + xlib + ]; + + patches = [ + (fetchpatch { + # https://github.com/ossobv/xpaste/pull/6 + name = "fix-function-call-after-wayland-update.patch"; + url = "https://github.com/ossobv/xpaste/commit/47412738dad4b5fc8bc287ead23c8440bfdc547d.patch"; + hash = "sha256-t4LZG600AsFTtKjXCxioGcAP4YcHIdQ/fVMIYjsunuA="; + }) + ]; + + # no tests, no python module to import, no version output to check + doCheck = false; + + meta = with lib; { + description = "Paste text into X windows that don't work with selections"; + homepage = "https://github.com/ossobv/xpaste"; + license = licenses.gpl3; + maintainers = with maintainers; [ gador ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 47fee83a9ae5..4f48ad8215f6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1479,6 +1479,8 @@ with pkgs; xcd = callPackage ../tools/misc/xcd { }; + xpaste = callPackage ../tools/text/xpaste { }; + xrootd = callPackage ../tools/networking/xrootd { }; xtrt = callPackage ../tools/archivers/xtrt { };