thermald: 2.2 -> 2.3
Also cleanup the derivation: - remove unnecessary PKG_CONFIG_PATH export - change gpl2 to gpl2Only - add meta.changelog - reformat inputs and sort alphabetically last three suggested by @drewrisinger.
This commit is contained in:
parent
e0759a4973
commit
5cae66cb84
1 changed files with 44 additions and 13 deletions
|
@ -1,34 +1,64 @@
|
|||
{ stdenv, fetchFromGitHub, autoconf, automake, libtool
|
||||
, pkgconfig, dbus, dbus-glib, libxml2, autoconf-archive }:
|
||||
{ autoconf
|
||||
, autoconf-archive
|
||||
, automake
|
||||
, dbus
|
||||
, dbus-glib
|
||||
, docbook_xml_dtd_412
|
||||
, docbook-xsl-nons
|
||||
, fetchFromGitHub
|
||||
, gtk-doc
|
||||
, libevdev
|
||||
, libtool
|
||||
, libxml2
|
||||
, lzma
|
||||
, pkgconfig
|
||||
, stdenv
|
||||
, upower
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "thermald";
|
||||
version = "2.2";
|
||||
version = "2.3";
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "intel";
|
||||
repo = "thermal_daemon";
|
||||
rev = "v${version}";
|
||||
sha256 = "1nrhv3bypyc48h9smj5cpq63rawm6vqyg3cwkhpz69rgjnf1283m";
|
||||
sha256 = "0cisaca2c2z1x9xvxc4lr6nl6yqx5bww6brh73m0p1n643jgq1dl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ autoconf automake libtool dbus dbus-glib libxml2 autoconf-archive ];
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
autoconf-archive
|
||||
automake
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_412
|
||||
gtk-doc
|
||||
libtool
|
||||
pkgconfig
|
||||
];
|
||||
|
||||
patchPhase = ''sed -e 's/upstartconfdir = \/etc\/init/upstartconfdir = $(out)\/etc\/init/' -i data/Makefile.am'';
|
||||
|
||||
preConfigure = ''
|
||||
export PKG_CONFIG_PATH="${dbus.dev}/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
./autogen.sh
|
||||
'';
|
||||
buildInputs = [
|
||||
dbus
|
||||
dbus-glib
|
||||
libevdev
|
||||
libxml2
|
||||
lzma
|
||||
upower
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--sysconfdir=${placeholder "out"}/etc"
|
||||
"--localstatedir=/var"
|
||||
"--enable-gtk-doc"
|
||||
"--with-dbus-sys-dir=${placeholder "out"}/share/dbus-1/system.d"
|
||||
"--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||
];
|
||||
|
||||
preConfigure = "NO_CONFIGURE=1 ./autogen.sh";
|
||||
|
||||
postInstall = ''
|
||||
cp ./data/thermal-conf.xml $out/etc/thermald/
|
||||
'';
|
||||
|
@ -36,7 +66,8 @@ stdenv.mkDerivation rec {
|
|||
meta = with stdenv.lib; {
|
||||
description = "Thermal Daemon";
|
||||
homepage = "https://01.org/linux-thermal-daemon";
|
||||
license = licenses.gpl2;
|
||||
changelog = "https://github.com/intel/thermal_daemon/blob/master/README.txt";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue