2021-03-01 09:47:02 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv
|
2021-01-17 02:09:27 +00:00
|
|
|
, autoreconfHook, intltool, pkg-config
|
2020-05-24 15:30:25 +00:00
|
|
|
, gtk3, libayatana-appindicator, xdotool, which, wrapGAppsHook }:
|
2014-08-21 14:22:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "clipit";
|
2020-04-30 22:20:52 +00:00
|
|
|
version = "1.4.5";
|
2014-08-21 14:22:08 +00:00
|
|
|
|
2020-04-02 14:36:35 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-04-30 22:20:52 +00:00
|
|
|
owner = "CristianHenzel";
|
2020-04-02 14:36:35 +00:00
|
|
|
repo = "ClipIt";
|
2020-04-30 22:20:52 +00:00
|
|
|
rev = "45e2ea386d04dbfc411ea370299502450d589d0c";
|
|
|
|
sha256 = "0byqz9hanwmdc7i55xszdby2iqrk93lws7hmjda2kv17g34apwl7";
|
2014-08-21 14:22:08 +00:00
|
|
|
};
|
|
|
|
|
2020-04-02 14:36:35 +00:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize --copy --force --automake
|
|
|
|
'';
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook autoreconfHook intltool ];
|
2020-05-24 15:30:25 +00:00
|
|
|
configureFlags = [ "--with-gtk3" "--enable-appindicator=yes" ];
|
|
|
|
buildInputs = [ gtk3 libayatana-appindicator ];
|
2020-04-02 14:36:35 +00:00
|
|
|
|
|
|
|
gappsWrapperArgs = [
|
2021-01-15 05:42:41 +00:00
|
|
|
"--prefix" "PATH" ":" "${lib.makeBinPath [ xdotool which ]}"
|
2020-04-02 14:36:35 +00:00
|
|
|
];
|
2014-08-21 14:22:08 +00:00
|
|
|
|
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-02 14:36:35 +00:00
|
|
|
inherit (src.meta) homepage;
|
2014-08-21 14:22:08 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-04-30 22:20:52 +00:00
|
|
|
maintainers = with maintainers; [ kamilchm ];
|
2014-08-21 14:22:08 +00:00
|
|
|
};
|
|
|
|
}
|