2020-09-25 04:45:31 +00:00
|
|
|
{ autoconf
|
|
|
|
, autoconf-archive
|
|
|
|
, automake
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk-doc
|
|
|
|
, libevdev
|
|
|
|
, libtool
|
|
|
|
, libxml2
|
2021-04-05 15:23:46 +00:00
|
|
|
, xz
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2021-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, upower
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "thermald";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "2.5";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-05-03 17:38:23 +00:00
|
|
|
owner = "intel";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "thermal_daemon";
|
|
|
|
rev = "v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-j66uBbTZhHFXhDSDI0IseoyF/rCEl/B87YjorfZIHX8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
autoconf-archive
|
|
|
|
automake
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
gtk-doc
|
|
|
|
libtool
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
dbus-glib
|
|
|
|
libevdev
|
|
|
|
libxml2
|
2021-04-05 15:23:46 +00:00
|
|
|
xz
|
2020-09-25 04:45:31 +00:00
|
|
|
upower
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
|
|
|
"--localstatedir=/var"
|
2020-09-25 04:45:31 +00:00
|
|
|
"--enable-gtk-doc"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
|
|
|
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
2022-03-05 16:20:37 +00:00
|
|
|
"--disable-werror"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
preConfigure = "NO_CONFIGURE=1 ./autogen.sh";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
cp ./data/thermal-conf.xml $out/etc/thermald/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Thermal Daemon";
|
2022-01-22 01:22:15 +00:00
|
|
|
homepage = "https://github.com/intel/thermal_daemon";
|
2020-09-25 04:45:31 +00:00
|
|
|
changelog = "https://github.com/intel/thermal_daemon/blob/master/README.txt";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|