2017-03-31 00:41:55 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
2018-02-25 03:23:58 +01:00
|
|
|
, gtk2, hicolor-icon-theme, intltool, pkgconfig
|
2017-12-06 00:04:34 +01:00
|
|
|
, which, wrapGAppsHook, xdotool }:
|
2013-05-18 07:22:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "parcellite";
|
2017-03-31 00:41:55 +02:00
|
|
|
version = "1.2.1";
|
2013-05-18 07:22:49 +02:00
|
|
|
|
2017-03-31 00:41:55 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rickyrockrat";
|
|
|
|
repo = "parcellite";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "19q4x6x984s6gxk1wpzaxawgvly5vnihivrhmja2kcxhzqrnfhiy";
|
2013-05-18 07:22:49 +02:00
|
|
|
};
|
|
|
|
|
2017-12-05 23:59:07 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ];
|
2018-02-25 03:23:58 +01:00
|
|
|
buildInputs = [ gtk2 hicolor-icon-theme ];
|
2019-01-04 20:33:50 +01:00
|
|
|
NIX_LDFLAGS = [ "-lgio-2.0" ];
|
2013-05-18 07:22:49 +02:00
|
|
|
|
2017-12-06 00:04:34 +01:00
|
|
|
preFixup = ''
|
|
|
|
# Need which and xdotool on path to fix auto-pasting.
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin")
|
|
|
|
'';
|
|
|
|
|
2017-03-31 00:41:55 +02:00
|
|
|
meta = with stdenv.lib; {
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "Lightweight GTK clipboard manager";
|
2017-03-31 00:41:55 +02:00
|
|
|
homepage = https://github.com/rickyrockrat/parcellite;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2013-05-18 07:22:49 +02:00
|
|
|
};
|
|
|
|
}
|