2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
stdenv.mkDerivation {
|
2013-06-09 04:41:44 +02:00
|
|
|
name = "hddtemp-0.3_beta15";
|
2007-12-10 23:36:52 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
db = fetchurl{
|
2013-07-14 04:23:06 +02:00
|
|
|
url = mirror://savannah/hddtemp/hddtemp.db;
|
2010-07-28 13:55:54 +02:00
|
|
|
sha256 = "1fr6qgns6qv7cr40lic5yqwkkc7yjmmgx8j0z6d93csg3smzhhya";
|
|
|
|
};
|
2013-02-28 16:00:49 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2013-07-14 04:23:06 +02:00
|
|
|
url = mirror://savannah/hddtemp/hddtemp-0.3-beta15.tar.bz2;
|
2010-07-28 13:55:54 +02:00
|
|
|
sha256 = "0nzgg4nl8zm9023wp4dg007z6x3ir60rwbcapr9ks2al81c431b1";
|
2007-12-10 23:36:52 +01:00
|
|
|
};
|
|
|
|
|
2013-02-28 16:00:49 +01:00
|
|
|
# from Gentoo
|
|
|
|
patches = [ ./byteswap.patch ./dontwake.patch ./execinfo.patch ./satacmds.patch ];
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
configurePhase =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/nix-support
|
2010-07-28 13:55:54 +02:00
|
|
|
cp $db $out/nix-support/hddtemp.db
|
|
|
|
./configure --prefix=$out --with-db-path=$out/nix-support/hddtemp.db
|
2013-02-28 16:00:49 +01:00
|
|
|
'';
|
2007-12-10 23:36:52 +01:00
|
|
|
|
2016-03-16 01:13:00 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Tool for displaying hard disk temperature";
|
|
|
|
homepage = https://savannah.nongnu.org/projects/hddtemp/;
|
2016-03-16 01:13:00 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2007-12-10 23:36:52 +01:00
|
|
|
};
|
|
|
|
}
|