about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorMarcial Gaißert <gaisseml@studi.informatik.uni-stuttgart.de>2019-05-08 21:31:56 +0200
committerLassulus <github@lassul.us>2019-05-26 18:24:23 +0900
commitc7bcd4277cc9a656207b636dbc62fef21dc64c78 (patch)
tree9d7271ffc267e23608f742a63edfd96716ad26b7 /pkgs/tools
parent38ec6d9a08b67261789d2eb602a5a575dabb6659 (diff)
caffeine-ng: init at 3.4.2
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/X11/caffeine-ng/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/X11/caffeine-ng/default.nix b/pkgs/tools/X11/caffeine-ng/default.nix
new file mode 100644
index 0000000000000..8792818164ff6
--- /dev/null
+++ b/pkgs/tools/X11/caffeine-ng/default.nix
@@ -0,0 +1,34 @@
+{ gdk_pixbuf, glib, gobject-introspection, gtk3, lib, libnotify, pkgs,
+  pythonPackages, wrapGAppsHook
+}:
+
+pythonPackages.buildPythonApplication rec {
+  pname = "caffeine-ng";
+  version = "3.4.2";
+
+  src = pythonPackages.fetchPypi{
+    inherit pname version;
+    sha256="05k8smjlfjcccgmp8qi04l7106k46fs4p8fl5bdqqjwv6pwl7y4w";
+  };
+
+  nativeBuildInputs = [ wrapGAppsHook glib ];
+  buildInputs = [ gdk_pixbuf gobject-introspection libnotify gtk3 ];
+  pythonPath = with pythonPackages; [
+    dbus-python docopt ewmh pygobject3 pyxdg
+    setproctitle setuptools setuptools_scm wheel
+  ];
+
+  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;
+  };
+}