2015-12-27 20:21:43 +00:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
2013-04-05 23:34:50 +01:00
|
|
|
|
2015-12-27 20:21:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-04-05 23:34:50 +01:00
|
|
|
name = "thinkfan-${version}";
|
2015-12-27 20:21:43 +00:00
|
|
|
version = "0.9.2";
|
2013-04-05 23:34:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 02:17:07 +01:00
|
|
|
url = "mirror://sourceforge/thinkfan/thinkfan-${version}.tar.gz";
|
2015-12-27 20:21:43 +00:00
|
|
|
sha256 = "0ydgabk2758f6j64g1r9vdsd221nqsv5rwnphm81s7i2vgra1nlh";
|
2013-04-05 23:34:50 +01:00
|
|
|
};
|
2015-12-27 20:21:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
sourceRoot="$PWD/${name}";
|
|
|
|
mkdir $sourceRoot;
|
|
|
|
tar xzvf "$src" -C $sourceRoot;
|
|
|
|
'';
|
|
|
|
|
2013-04-05 23:34:50 +01:00
|
|
|
installPhase = ''
|
2016-05-03 23:33:27 +01:00
|
|
|
install -Dm755 {.,$out/bin}/thinkfan
|
|
|
|
|
|
|
|
cd $sourceRoot
|
|
|
|
install -Dm644 {.,$out/share/doc/thinkfan}/README
|
|
|
|
cp -R examples $out/share/doc/thinkfan
|
|
|
|
install -Dm644 {.,$out/share/man/man1}/thinkfan.1
|
2013-04-05 23:34:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-04-06 07:19:57 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-05-03 23:33:27 +01:00
|
|
|
homepage = http://thinkfan.sourceforge.net/;
|
2013-04-05 23:34:50 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ iElectric ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|