From e3675fedc7a20c9b47b696c501ed91870469df8a Mon Sep 17 00:00:00 2001 From: Patrick Chilton Date: Wed, 4 Oct 2017 13:23:46 +0200 Subject: [PATCH] mate-power-manager: init at 1.18.0 --- lib/maintainers.nix | 1 + .../services/x11/desktop-managers/mate.nix | 1 + pkgs/desktops/mate/default.nix | 2 + .../mate/mate-power-manager/default.nix | 44 +++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 pkgs/desktops/mate/mate-power-manager/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 669abee6d598..c150697e6f92 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -107,6 +107,7 @@ chaoflow = "Florian Friesdorf "; chattered = "Phil Scott "; choochootrain = "Hurshal Patel "; + chpatrick = "Patrick Chilton "; chris-martin = "Chris Martin "; chrisjefferson = "Christopher Jefferson "; chrisrosset = "Christopher Rosset "; diff --git a/nixos/modules/services/x11/desktop-managers/mate.nix b/nixos/modules/services/x11/desktop-managers/mate.nix index 7a95ac6549d8..ab8a0a48b483 100644 --- a/nixos/modules/services/x11/desktop-managers/mate.nix +++ b/nixos/modules/services/x11/desktop-managers/mate.nix @@ -72,6 +72,7 @@ in ]; services.gnome3.gnome-keyring.enable = true; + services.upower.enable = config.powerManagement.enable; environment.pathsToLink = [ "/share" ]; }; diff --git a/pkgs/desktops/mate/default.nix b/pkgs/desktops/mate/default.nix index 0db1d3f74c0e..dd7d8c5dbb26 100644 --- a/pkgs/desktops/mate/default.nix +++ b/pkgs/desktops/mate/default.nix @@ -25,6 +25,7 @@ let mate-menus = callPackage ./mate-menus { }; mate-notification-daemon = callPackage ./mate-notification-daemon { }; mate-panel = callPackage ./mate-panel { }; + mate-power-manager = callPackage ./mate-power-manager { }; mate-session-manager = callPackage ./mate-session-manager { }; mate-settings-daemon = callPackage ./mate-settings-daemon { }; mate-terminal = callPackage ./mate-terminal { }; @@ -55,6 +56,7 @@ let engrampa eom mate-icon-theme-faenza + mate-power-manager mate-terminal pluma ]; diff --git a/pkgs/desktops/mate/mate-power-manager/default.nix b/pkgs/desktops/mate/mate-power-manager/default.nix new file mode 100644 index 000000000000..62b991632840 --- /dev/null +++ b/pkgs/desktops/mate/mate-power-manager/default.nix @@ -0,0 +1,44 @@ +{ stdenv, fetchurl, pkgconfig, intltool, glib, itstool, libxml2, mate, libnotify, libcanberra_gtk3, dbus_glib, upower, gnome3, libtool, wrapGAppsHook }: + +stdenv.mkDerivation rec { + name = "mate-power-manager-${version}"; + version = "${major-ver}.${minor-ver}"; + major-ver = "1.18"; + minor-ver = "0"; + + src = fetchurl { + url = "http://pub.mate-desktop.org/releases/${major-ver}/${name}.tar.xz"; + sha256 = "1gmka9ybxvkrdjaga1md6pbw6q1cx5yxb58ai5315a0f5p45y36x"; + }; + + buildInputs = [ + glib + itstool + libxml2 + libcanberra_gtk3 + gnome3.gtk + gnome3.libgnome_keyring + libnotify + dbus_glib + upower + + mate.mate-panel + ]; + + nativeBuildInputs = [ + pkgconfig + intltool + libtool + wrapGAppsHook + ]; + + configureFlags = [ "--enable-applets" ]; + + meta = with stdenv.lib; { + description = "The MATE Power Manager"; + homepage = http://mate-desktop.org; + license = licenses.gpl3; + platforms = platforms.unix; + maintainers = [ maintainers.romildo maintainers.chpatrick ]; + }; +}