diff --git a/pkgs/tools/misc/clipboard-jh/default.nix b/pkgs/tools/misc/clipboard-jh/default.nix index 1c064844dd3..c8cc8036e49 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";