summary refs log tree commit diff
diff options
context:
space:
mode:
authorheinwol <56993793+heinwol@users.noreply.github.com>2023-05-21 19:18:56 +0300
committerheinwol <koreshkovhw@yandex.ru>2023-05-21 20:20:07 +0300
commitafbbd3fcf67a7c03a7586e1486ab21c013fd0ec5 (patch)
tree79fa8dba8662e4c802290ff065b2700d7eabc4cf
parent6a603868e4a39f9f48786b04f8dc237ab6ebad77 (diff)
clipboard-jh: fixed broken system clipboard integration
fixes https://github.com/NixOS/nixpkgs/issues/229659 as well as https://github.com/Slackadays/Clipboard/discussions/117
-rw-r--r--pkgs/tools/misc/clipboard-jh/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/clipboard-jh/default.nix b/pkgs/tools/misc/clipboard-jh/default.nix
index 1c064844dd36d..c8cc8036e49a3 100644
--- a/pkgs/tools/misc/clipboard-jh/default.nix
+++ b/pkgs/tools/misc/clipboard-jh/default.nix
@@ -4,6 +4,7 @@
 , cmake
 , libffi
 , pkg-config
+, patchelf
 , wayland-protocols
 , wayland
 , xorg
@@ -45,6 +46,10 @@ stdenv.mkDerivation rec {
     "-DINSTALL_PREFIX=${placeholder "out"}"
   ];
 
+  postFixup = lib.optionalString stdenv.isLinux ''
+    patchelf $out/bin/cb --add-rpath $out/lib
+  '';
+
   meta = with lib; {
     description = "Cut, copy, and paste anything, anywhere, all from the terminal";
     homepage = "https://github.com/Slackadays/clipboard";