2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
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{
|
2020-04-01 02:11:51 +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 {
|
2020-04-01 02:11:51 +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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "Tool for displaying hard disk temperature";
|
2020-04-01 02:11:51 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|