Merge pull request #99667 from uvNikita/caffeine-ng/fix-bin-paths

caffeine-ng: add missing dependencies, fix bin paths
This commit is contained in:
Dmitry Kalinkin 2020-10-13 16:19:52 -04:00 committed by GitHub
commit 6cc0fc93d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{ gdk-pixbuf, glib, gobject-introspection, gtk3, lib, libnotify,
python3Packages, wrapGAppsHook
procps, xset, xautolock, xscreensaver, python3Packages, wrapGAppsHook
}:
python3Packages.buildPythonApplication rec {
@ -12,17 +12,25 @@ python3Packages.buildPythonApplication rec {
};
nativeBuildInputs = [ wrapGAppsHook glib ];
buildInputs = [
gdk-pixbuf gobject-introspection libnotify gtk3
buildInputs = [
gdk-pixbuf gobject-introspection libnotify gtk3
python3Packages.setuptools_scm
];
pythonPath = with python3Packages; [
dbus-python docopt ewmh pygobject3 pyxdg
setproctitle
setproctitle
];
doCheck = false; # There are no tests.
postPatch = ''
substituteInPlace caffeine/inhibitors.py \
--replace 'os.system("xset' 'os.system("${xset}/bin/xset' \
--replace 'os.system("xautolock' 'os.system("${xautolock}/bin/xautolock' \
--replace 'os.system("pgrep' 'os.system("${procps}/bin/pgrep' \
--replace 'os.system("xscreensaver-command' 'os.system("${xscreensaver}/bin/xscreensaver-command'
'';
postInstall = ''
mkdir -p $out/share
cp -r share $out/