nixpkgs/pkgs/applications/misc/safeeyes/default.nix
R. RyanTM a3a31fcb22 safeeyes: 2.0.5 -> 2.0.6
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/safeeyes/versions.

These checks were done:

- built on NixOS
- /nix/store/53h69rsf2wws7mdq1k7fq37crp4lx77y-safeeyes-2.0.6/bin/safeeyes passed the binary check.
- Warning: no invocation of /nix/store/53h69rsf2wws7mdq1k7fq37crp4lx77y-safeeyes-2.0.6/bin/..safeeyes-wrapped-wrapped had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/53h69rsf2wws7mdq1k7fq37crp4lx77y-safeeyes-2.0.6/bin/.safeeyes-wrapped had a zero exit code or showed the expected version
- 1 of 3 passed binary check by having a zero exit code.
- 0 of 3 passed binary check by having the new version present in output.
- found 2.0.6 with grep in /nix/store/53h69rsf2wws7mdq1k7fq37crp4lx77y-safeeyes-2.0.6
- directory tree listing: https://gist.github.com/505a88852b7a491f174c5ea908f29b0b
- du listing: https://gist.github.com/84c95c9fa3f5e9999c04687baf8cdf77
2018-06-27 13:11:04 -07:00

72 lines
1.8 KiB
Nix

{ lib, python3Packages, gobjectIntrospection, libappindicator-gtk3, libnotify, gtk3, gnome3, xprintidle-ng, wrapGAppsHook, gdk_pixbuf, shared-mime-info, librsvg
}:
let inherit (python3Packages) python buildPythonApplication fetchPypi;
in buildPythonApplication rec {
name = "${pname}-${version}";
pname = "safeeyes";
version = "2.0.6";
namePrefix = "";
src = fetchPypi {
inherit pname version;
sha256 = "0s14pxicgq33srvhf6bvfq48wv3z4rlsmzkccz4ky9vh3gfx7zka";
};
buildInputs = [
gtk3
gobjectIntrospection
gnome3.defaultIconTheme
gnome3.adwaita-icon-theme
];
nativeBuildInputs = [
wrapGAppsHook
];
propagatedBuildInputs = with python3Packages; [
Babel
psutil
xlib
pygobject3
dbus-python
libappindicator-gtk3
libnotify
xprintidle-ng
];
# patch smartpause plugin
postPatch = ''
sed -i \
-e 's!xprintidle!xprintidle-ng!g' \
safeeyes/plugins/smartpause/plugin.py
sed -i \
-e 's!xprintidle!xprintidle-ng!g' \
safeeyes/plugins/smartpause/config.json
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
--prefix XDG_DATA_DIRS : "${librsvg}/share"
# safeeyes images
--prefix XDG_DATA_DIRS : "$out/lib/${python.libPrefix}/site-packages/usr/share"
)
'';
doCheck = false; # no tests
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;
maintainers = with lib.maintainers; [ srghma ];
platforms = lib.platforms.all;
};
}