@@ -1,5 +1,6 @@
11{ stdenv, fetchFromGitHub, autoreconfHook
2−, gtk2, hicolor_icon_theme, intltool, pkgconfig, wrapGAppsHook }:
2+, gtk2, hicolor_icon_theme, intltool, pkgconfig
3+, which, wrapGAppsHook, xdotool }:
34
45stdenv.mkDerivation rec {
56 name = "parcellite-${version}";
@@ -15,6 +16,11 @@ stdenv.mkDerivation rec {
1516 nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ];
1617 buildInputs = [ gtk2 hicolor_icon_theme ];
1718
19+ preFixup = ''
20+ # Need which and xdotool on path to fix auto-pasting.
21+ gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin")
22+ '';
23+
1824 meta = with stdenv.lib; {
1925 description = "Lightweight GTK+ clipboard manager";
2026 homepage = https://github.com/rickyrockrat/parcellite;