2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
2021-01-17 03:51:22 +00:00
|
|
|
, gtk2, hicolor-icon-theme, intltool, pkg-config
|
2020-05-24 15:31:17 +00:00
|
|
|
, which, wrapGAppsHook, xdotool, libappindicator-gtk2 }:
|
2013-05-18 05:22:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "parcellite";
|
2017-03-30 22:41:55 +00:00
|
|
|
version = "1.2.1";
|
2013-05-18 05:22:49 +00:00
|
|
|
|
2017-03-30 22:41:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rickyrockrat";
|
|
|
|
repo = "parcellite";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "19q4x6x984s6gxk1wpzaxawgvly5vnihivrhmja2kcxhzqrnfhiy";
|
2013-05-18 05:22:49 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config wrapGAppsHook ];
|
2020-05-24 15:31:17 +00:00
|
|
|
buildInputs = [ gtk2 hicolor-icon-theme libappindicator-gtk2 ];
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_LDFLAGS = "-lgio-2.0";
|
2013-05-18 05:22:49 +00:00
|
|
|
|
2017-12-05 23:04:34 +00:00
|
|
|
preFixup = ''
|
|
|
|
# Need which and xdotool on path to fix auto-pasting.
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin")
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "Lightweight GTK clipboard manager";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rickyrockrat/parcellite";
|
2017-03-30 22:41:55 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "parcellite";
|
2013-05-18 05:22:49 +00:00
|
|
|
};
|
|
|
|
}
|