2021-03-09 03:18:52 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv
|
2021-02-05 17:12:51 +00:00
|
|
|
, autoreconfHook, intltool, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, gtk3, libayatana-appindicator, xdotool, which, wrapGAppsHook3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clipit";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "1.4.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-05-03 17:38:23 +00:00
|
|
|
owner = "CristianHenzel";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "ClipIt";
|
2020-05-03 17:38:23 +00:00
|
|
|
rev = "45e2ea386d04dbfc411ea370299502450d589d0c";
|
|
|
|
sha256 = "0byqz9hanwmdc7i55xszdby2iqrk93lws7hmjda2kv17g34apwl7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
intltoolize --copy --force --automake
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 autoreconfHook intltool ];
|
2020-11-30 08:33:03 +00:00
|
|
|
configureFlags = [ "--with-gtk3" "--enable-appindicator=yes" ];
|
|
|
|
buildInputs = [ gtk3 libayatana-appindicator ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
gappsWrapperArgs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
"--prefix" "PATH" ":" "${lib.makeBinPath [ xdotool which ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Lightweight GTK Clipboard Manager";
|
|
|
|
inherit (src.meta) homepage;
|
2024-02-29 20:09:43 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "clipit";
|
2020-05-03 17:38:23 +00:00
|
|
|
maintainers = with maintainers; [ kamilchm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|