Merge pull request #55142 from FlorianFranzen/thinkfan_smart

thinkfan: add option for libatasmart support
This commit is contained in:
Domen Kožar
2019-03-05 17:47:13 +07:00
committed by GitHub
2 changed files with 21 additions and 6 deletions
+6 -1
View File
@@ -1,4 +1,5 @@
{ stdenv, fetchurl, cmake }:
{ stdenv, fetchurl, cmake
, smartSupport ? false, libatasmart }:
stdenv.mkDerivation rec {
name = "thinkfan-${version}";
@@ -11,6 +12,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = stdenv.lib.optional smartSupport libatasmart;
cmakeFlags = stdenv.lib.optional smartSupport "-DUSE_ATASMART=ON";
installPhase = ''
install -Dm755 {.,$out/bin}/thinkfan