thinkfan: 0.9.3 -> 1.0.1

This commit is contained in:
Andrey Ovcharov 2019-02-16 17:51:59 +07:00 committed by Christine Koppelt
parent a7bf8161fa
commit 859b3b7f90

View File

@ -1,18 +1,27 @@
{ stdenv, fetchurl, cmake
{ stdenv, fetchFromGitHub, cmakeCurses, libyamlcpp, pkgconfig
, smartSupport ? false, libatasmart }:
stdenv.mkDerivation rec {
pname = "thinkfan";
version = "0.9.3";
version = "1.0.1";
src = fetchurl {
url = "mirror://sourceforge/thinkfan/thinkfan-${version}.tar.gz";
sha256 = "0nz4c48f0i0dljpk5y33c188dnnwg8gz82s4grfl8l64jr4n675n";
src = fetchFromGitHub {
owner = "vmatare";
repo = "thinkfan";
rev = "${version}";
sha256 = "1983p8aryfgpyhflh5r5xz27y136a4vvm7plgrg44q4aicqbcp8j";
};
nativeBuildInputs = [ cmake ];
configureFlags = [
"-DCMAKE_INSTALL_DOCDIR==share/doc/${pname}"
"-DUSE_NVML=OFF"
"-DUSE_ATASMART=ON"
"-DUSE_YAML=ON"
];
buildInputs = stdenv.lib.optional smartSupport libatasmart;
nativeBuildInputs = [ cmakeCurses pkgconfig ];
buildInputs = [libyamlcpp] ++ stdenv.lib.optional smartSupport libatasmart;
cmakeFlags = stdenv.lib.optional smartSupport "-DUSE_ATASMART=ON";
@ -27,7 +36,7 @@ stdenv.mkDerivation rec {
meta = {
license = stdenv.lib.licenses.gpl3;
homepage = http://thinkfan.sourceforge.net/;
homepage = https://github.com/vmatare/thinkfan;
maintainers = with stdenv.lib.maintainers; [ domenkozar ];
platforms = stdenv.lib.platforms.linux;
};