79081322ab
These allows Parcellite's auto-paste feature to work out of the box.
30 lines
869 B
Nix
30 lines
869 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook
|
|
, gtk2, hicolor_icon_theme, intltool, pkgconfig
|
|
, which, wrapGAppsHook, xdotool }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "parcellite-${version}";
|
|
version = "1.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rickyrockrat";
|
|
repo = "parcellite";
|
|
rev = version;
|
|
sha256 = "19q4x6x984s6gxk1wpzaxawgvly5vnihivrhmja2kcxhzqrnfhiy";
|
|
};
|
|
|
|
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;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|