git.iko.soy/typeable/nixpkgs
on master help sign in
parcellite: add which and xdotool as dependencies

These allows Parcellite's auto-paste feature to work out of the box.

commit79081322ab97b7d9c937c07b24cd0911e2a3a0a9 authorRobert Helgesson <robert@rycee.net> dateWed 6 Dec 2017, 00:04 (9 years ago) parentb7c0f85
1 file changed+7−1
pkgs/tools/misc/parcellite/default.nix+7−1
pkgs/tools/misc/parcellite/default.nix+7−1
@@ -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;