2015-12-27 21:21:43 +01:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
2013-04-06 00:34:50 +02:00
|
|
|
|
2015-12-27 21:21:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2013-04-06 00:34:50 +02:00
|
|
|
name = "thinkfan-${version}";
|
2016-05-07 16:41:09 +02:00
|
|
|
version = "0.9.3";
|
2013-04-06 00:34:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 03:17:07 +02:00
|
|
|
url = "mirror://sourceforge/thinkfan/thinkfan-${version}.tar.gz";
|
2016-05-07 16:41:09 +02:00
|
|
|
sha256 = "0nz4c48f0i0dljpk5y33c188dnnwg8gz82s4grfl8l64jr4n675n";
|
2013-04-06 00:34:50 +02:00
|
|
|
};
|
2015-12-27 21:21:43 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2013-04-06 00:34:50 +02:00
|
|
|
installPhase = ''
|
2016-05-04 00:33:27 +02:00
|
|
|
install -Dm755 {.,$out/bin}/thinkfan
|
|
|
|
|
2016-05-07 16:41:09 +02:00
|
|
|
cd "$NIX_BUILD_TOP"; cd "$sourceRoot" # attempt to be a bit robust
|
2016-05-04 00:33:27 +02:00
|
|
|
install -Dm644 {.,$out/share/doc/thinkfan}/README
|
|
|
|
cp -R examples $out/share/doc/thinkfan
|
2016-05-07 16:41:09 +02:00
|
|
|
install -Dm644 {src,$out/share/man/man1}/thinkfan.1
|
2013-04-06 00:34:50 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-04-06 08:19:57 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-05-04 00:33:27 +02:00
|
|
|
homepage = http://thinkfan.sourceforge.net/;
|
2018-01-16 22:59:13 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ domenkozar ];
|
2013-04-06 00:34:50 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|