2020-04-02 16:36:35 +02:00
|
|
|
{ fetchFromGitHub, fetchpatch, stdenv
|
|
|
|
, autoreconfHook, intltool, pkgconfig
|
|
|
|
, gtk3, xdotool, which, wrapGAppsHook }:
|
2014-08-21 16:22:08 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "clipit";
|
2020-04-02 16:36:35 +02:00
|
|
|
version = "1.4.4";
|
2014-08-21 16:22:08 +02:00
|
|
|
|
2020-04-02 16:36:35 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "shantzu";
|
|
|
|
repo = "ClipIt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "05xi29v2y0rvb33fmvrz7r9j4l858qj7ngwd7dp4pzpkkaybjln0";
|
2014-08-21 16:22:08 +02:00
|
|
|
};
|
|
|
|
|
2020-04-02 16:36:35 +02:00
|
|
|
patches = [
|
|
|
|
# gtk3 support, can be removed in the next release
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/CristianHenzel/ClipIt/commit/22e012c7d406436e1785b6dd3c4c138b25f68431.patch";
|
|
|
|
sha256 = "0la4gc324dzxpx6nk2lqg5fmjgjpm2pyvzwddmfz1il8hqvrqg3j";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
intltoolize --copy --force --automake
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook autoreconfHook intltool ];
|
|
|
|
configureFlags = [ "--with-gtk3" ];
|
|
|
|
buildInputs = [ gtk3 ];
|
|
|
|
|
|
|
|
gappsWrapperArgs = [
|
|
|
|
"--prefix" "PATH" ":" "${stdenv.lib.makeBinPath [ xdotool which ]}"
|
|
|
|
];
|
2014-08-21 16:22:08 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-09-04 00:49:40 +02:00
|
|
|
description = "Lightweight GTK Clipboard Manager";
|
2020-04-02 16:36:35 +02:00
|
|
|
inherit (src.meta) homepage;
|
2014-08-21 16:22:08 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|