Skip to content

Commit

Permalink
parcellite: add which and xdotool as dependencies
Browse files Browse the repository at this point in the history
These allows Parcellite's auto-paste feature to work out of the box.
  • Loading branch information
rycee committed Dec 7, 2017
1 parent b7c0f85 commit 7908132
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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}";
Expand All @@ -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;
Expand Down

0 comments on commit 7908132

Please sign in to comment.