nixpkgs/pkgs/tools/misc/parcellite/default.nix

31 lines
869 B
Nix
Raw Normal View History

2017-03-30 22:41:55 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook
, gtk2, hicolor_icon_theme, intltool, pkgconfig
, which, wrapGAppsHook, xdotool }:
2013-05-18 05:22:49 +00:00
stdenv.mkDerivation rec {
2017-03-30 22:41:55 +00:00
name = "parcellite-${version}";
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
};
nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ];
buildInputs = [ gtk2 hicolor_icon_theme ];
2013-05-18 05:22:49 +00:00
preFixup = ''
# Need which and xdotool on path to fix auto-pasting.
gappsWrapperArgs+=(--prefix PATH : "${which}/bin:${xdotool}/bin")
'';
2017-03-30 22:41:55 +00:00
meta = with stdenv.lib; {
2013-05-18 05:22:49 +00:00
description = "Lightweight GTK+ clipboard manager";
2017-03-30 22:41:55 +00:00
homepage = https://github.com/rickyrockrat/parcellite;
license = licenses.gpl3Plus;
platforms = platforms.linux;
2013-05-18 05:22:49 +00:00
};
}