1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/system/thermald/default.nix
Tuomas Tynkkynen a86d746b93 thermald: Only works on x86
https://hydra.nixos.org/build/65220138

In general, the changelog at https://github.com/intel/thermal_daemon
sounds like it's only targeted at Intel processors.
2017-12-05 23:21:38 +02:00

38 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, dbus_libs, dbus_glib, libxml2 }:
stdenv.mkDerivation rec {
name = "thermald-${version}";
version = "1.6";
src = fetchFromGitHub {
owner = "01org";
repo = "thermal_daemon";
rev = "v${version}";
sha256 = "1qzvmzkzdrmwrzfbxb2rz1i39j5zskjxiiv1w9m0xyg08p2wr7h3";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ autoconf automake libtool dbus_libs dbus_glib libxml2 ];
patchPhase = ''sed -e 's/upstartconfdir = \/etc\/init/upstartconfdir = $(out)\/etc\/init/' -i data/Makefile.am'';
preConfigure = ''
export PKG_CONFIG_PATH="${dbus_libs.dev}/lib/pkgconfig:$PKG_CONFIG_PATH"
./autogen.sh
'';
configureFlags = [
"--sysconfdir=$(out)/etc" "--localstatedir=/var"
"--with-dbus-sys-dir=$(out)/etc/dbus-1/system.d"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
];
meta = with stdenv.lib; {
description = "Thermal Daemon";
homepage = https://01.org/linux-thermal-daemon;
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = with maintainers; [ abbradar ];
};
}