2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
stdenv.mkDerivation {
|
2013-06-09 02:41:44 +00: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 02:23:06 +00:00
|
|
|
url = mirror://savannah/hddtemp/hddtemp.db;
|
2010-07-28 11:55:54 +00:00
|
|
|
sha256 = "1fr6qgns6qv7cr40lic5yqwkkc7yjmmgx8j0z6d93csg3smzhhya";
|
|
|
|
};
|
2013-02-28 15:00:49 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2013-07-14 02:23:06 +00:00
|
|
|
url = mirror://savannah/hddtemp/hddtemp-0.3-beta15.tar.bz2;
|
2010-07-28 11:55:54 +00: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 11:55:54 +00:00
|
|
|
configurePhase =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/nix-support
|
2010-07-28 11:55:54 +00: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
|
|
|
|
2013-02-28 15:00:49 +00:00
|
|
|
meta = {
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "Tool for displaying hard disk temperature";
|
|
|
|
homepage = https://savannah.nongnu.org/projects/hddtemp/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2007-12-10 22:36:52 +00:00
|
|
|
};
|
|
|
|
}
|