summary refs log tree commit diff
path: root/pkgs/tools/misc/parcellite
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2017-12-06 00:04:34 +0100
committerRobert Helgesson <robert@rycee.net>2017-12-07 14:37:08 +0100
commit79081322ab97b7d9c937c07b24cd0911e2a3a0a9 (patch)
tree682e36b28b03e9c055653f00248ec2c135fa8ef6 /pkgs/tools/misc/parcellite
parentb7c0f858a4bedb6a33303c6c944155c6c211fc2e (diff)
downloadnixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.tar
nixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.tar.gz
nixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.tar.bz2
nixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.tar.lz
nixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.tar.xz
nixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.tar.zst
nixpkgs-79081322ab97b7d9c937c07b24cd0911e2a3a0a9.zip
parcellite: add which and xdotool as dependencies
These allows Parcellite's auto-paste feature to work out of the box.
Diffstat (limited to 'pkgs/tools/misc/parcellite')
-rw-r--r--pkgs/tools/misc/parcellite/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/parcellite/default.nix b/pkgs/tools/misc/parcellite/default.nix
index 93064c6dc8e..cb55226109b 100644
--- a/pkgs/tools/misc/parcellite/default.nix
+++ b/pkgs/tools/misc/parcellite/default.nix
@@ -1,5 +1,6 @@
 { stdenv, fetchFromGitHub, autoreconfHook
-, gtk2, hicolor_icon_theme, intltool, pkgconfig, wrapGAppsHook }:
+, gtk2, hicolor_icon_theme, intltool, pkgconfig
+, which, wrapGAppsHook, xdotool }:
 
 stdenv.mkDerivation rec {
   name = "parcellite-${version}";
@@ -15,6 +16,11 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ];
   buildInputs = [ gtk2 hicolor_icon_theme ];
 
+  preFixup = ''
+    # Need which and xdotool on path to fix auto-pasting.
+    gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin")
+  '';
+
   meta = with stdenv.lib; {
     description = "Lightweight GTK+ clipboard manager";
     homepage = https://github.com/rickyrockrat/parcellite;