2018-03-24 18:15:31 +01:00
|
|
|
{ lib, python3Packages, gobjectIntrospection, libappindicator-gtk3, gtk3, gnome3, xprintidle-ng
|
|
|
|
}:
|
|
|
|
|
|
|
|
let inherit (python3Packages) python buildPythonApplication fetchPypi;
|
|
|
|
|
|
|
|
in buildPythonApplication rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "safeeyes";
|
|
|
|
version = "2.0.2";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1fx6zd4hnbc7gdpac6r7smxwdl1bifaxx3mnx0wrqfvhpnwr1ybv";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gtk3 gobjectIntrospection gnome3.defaultIconTheme ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
Babel
|
|
|
|
psutil
|
|
|
|
xlib
|
|
|
|
pygobject3
|
|
|
|
dbus-python
|
|
|
|
|
|
|
|
libappindicator-gtk3
|
|
|
|
xprintidle-ng
|
|
|
|
];
|
|
|
|
|
|
|
|
# patch smartpause plugin
|
|
|
|
postPatch = ''
|
|
|
|
sed -i \
|
2018-04-04 22:15:16 +02:00
|
|
|
-e 's!xprintidle!xprintidle-ng!g' \
|
2018-03-24 18:15:31 +01:00
|
|
|
safeeyes/plugins/smartpause/plugin.py
|
|
|
|
|
|
|
|
sed -i \
|
2018-04-04 22:15:16 +02:00
|
|
|
-e 's!xprintidle!xprintidle-ng!g' \
|
2018-03-24 18:15:31 +01:00
|
|
|
safeeyes/plugins/smartpause/config.json
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
makeWrapperArgs = [
|
2018-04-10 20:42:50 +02:00
|
|
|
''--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"''
|
|
|
|
''--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"''
|
|
|
|
''--suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"''
|
|
|
|
''--prefix XDG_DATA_DIRS : "$out/lib/${python.libPrefix}/site-packages/usr/share"''
|
2018-03-24 18:15:31 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://slgobinath.github.io/SafeEyes;
|
|
|
|
description = "Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder. A Free and Open Source Linux alternative to EyeLeo";
|
|
|
|
license = lib.licenses.gpl3;
|
2018-04-01 11:43:28 +02:00
|
|
|
maintainers = with lib.maintainers; [ srghma ];
|
2018-03-24 18:15:31 +01:00
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|