2020-09-14 12:49:42 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, fetchFromGitLab
|
|
|
|
, libgudev
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gettext
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
|
|
|
, upower
|
|
|
|
, systemd
|
2021-04-05 10:04:44 +02:00
|
|
|
, python3
|
2020-09-14 12:49:42 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "power-profiles-daemon";
|
2021-04-05 10:04:44 +02:00
|
|
|
version = "0.8.1";
|
2020-09-14 12:49:42 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "hadess";
|
|
|
|
repo = "power-profiles-daemon";
|
|
|
|
rev = version;
|
2021-04-05 10:04:44 +02:00
|
|
|
sha256 = "sha256-OnCUr7KWVPpYGDseBUcJD/PdOobvFnyNA97NhnKbTKY=";
|
2020-09-14 12:49:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
libxml2 # for xmllint for stripping GResources
|
|
|
|
libxslt # for xsltproc for building docs
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libgudev
|
|
|
|
systemd
|
|
|
|
upower
|
|
|
|
glib
|
2021-04-05 10:04:44 +02:00
|
|
|
(python3.withPackages (ps: with ps; [ ps.pygobject3 ])) # for cli tool
|
2020-09-14 12:49:42 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.freedesktop.org/hadess/power-profiles-daemon";
|
|
|
|
description = "Makes user-selected power profiles handling available over D-Bus";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
|
|
|
};
|
|
|
|
}
|