2019-05-22 13:03:39 +02:00
|
|
|
{ gdk-pixbuf, glib, gobject-introspection, gtk3, lib, libnotify,
|
2019-09-01 20:29:41 +02:00
|
|
|
python3Packages, wrapGAppsHook
|
2019-05-08 21:31:56 +02:00
|
|
|
}:
|
|
|
|
|
2019-09-01 20:29:41 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-05-08 21:31:56 +02:00
|
|
|
pname = "caffeine-ng";
|
|
|
|
version = "3.4.2";
|
|
|
|
|
2019-09-01 20:29:41 +02:00
|
|
|
src = python3Packages.fetchPypi{
|
2019-05-08 21:31:56 +02:00
|
|
|
inherit pname version;
|
|
|
|
sha256="05k8smjlfjcccgmp8qi04l7106k46fs4p8fl5bdqqjwv6pwl7y4w";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook glib ];
|
2019-09-05 17:44:55 +02:00
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf gobject-introspection libnotify gtk3
|
|
|
|
python3Packages.setuptools_scm
|
|
|
|
];
|
2019-09-01 20:29:41 +02:00
|
|
|
pythonPath = with python3Packages; [
|
2019-05-08 21:31:56 +02:00
|
|
|
dbus-python docopt ewmh pygobject3 pyxdg
|
2019-09-05 17:44:55 +02:00
|
|
|
setproctitle
|
2019-05-08 21:31:56 +02:00
|
|
|
];
|
|
|
|
|
2019-09-01 20:28:08 +02:00
|
|
|
doCheck = false; # There are no tests.
|
|
|
|
|
2019-05-08 21:31:56 +02:00
|
|
|
postBuild = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -r share $out/
|
|
|
|
glib-compile-schemas --strict $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
maintainers = with maintainers; [ marzipankaiser ];
|
|
|
|
description = "Status bar application to temporarily inhibit screensaver and sleep mode";
|
|
|
|
homepage = "https://github.com/caffeine-ng/caffeine-ng";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|