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