parcellite: add which and xdotool as dependencies

These allows Parcellite's auto-paste feature to work out of the box.
This commit is contained in:
Robert Helgesson 2017-12-06 00:04:34 +01:00
parent b7c0f858a4
commit 79081322ab
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -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;