nixpkgs/pkgs/tools/system/thermald/default.nix
R. RyanTM d5cb2b49e7 thermald: 1.7.1 -> 1.7.2 (#41512)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/thermald/versions.

These checks were done:

- built on NixOS
- /nix/store/nbpmvairfm9zrzjijmwhr30bzmp2653h-thermald-1.7.2/bin/thermald passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 1 of 1 passed binary check by having the new version present in output.
- found 1.7.2 with grep in /nix/store/nbpmvairfm9zrzjijmwhr30bzmp2653h-thermald-1.7.2
- directory tree listing: https://gist.github.com/ad1f865238e5c5f860f3887649db1e4e
- du listing: https://gist.github.com/7d5e5cedb23a1867821a4444b72d29ab
2018-06-09 23:30:16 +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.7.2";
src = fetchFromGitHub {
owner = "01org";
repo = "thermal_daemon";
rev = "v${version}";
sha256 = "1cs2pq8xvfnsvrhg2bxawk4kn3z1qmfrnpnhs178pvfbglzh15hc";
};
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 ];
};
}