From c7bcd4277cc9a656207b636dbc62fef21dc64c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcial=20Gai=C3=9Fert?= Date: Wed, 8 May 2019 21:31:56 +0200 Subject: [PATCH] caffeine-ng: init at 3.4.2 --- pkgs/tools/X11/caffeine-ng/default.nix | 34 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/X11/caffeine-ng/default.nix diff --git a/pkgs/tools/X11/caffeine-ng/default.nix b/pkgs/tools/X11/caffeine-ng/default.nix new file mode 100644 index 000000000000..8792818164ff --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index df5b8b66cce0..6dcede063b8a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22768,6 +22768,8 @@ in opencv3 = opencv3WithoutCuda; # Used only for image loading. }); + caffeine-ng = callPackage ../tools/X11/caffeine-ng {}; + cntk = callPackage ../applications/science/math/cntk { inherit (linuxPackages) nvidia_x11; opencv3 = opencv3WithoutCuda; # Used only for image loading.