about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorDomen Kožar <domen@enlambda.com>2019-03-05 17:47:13 +0700
committerGitHub <noreply@github.com>2019-03-05 17:47:13 +0700
commitf60459a023a71f929a9c0c9f4a871c0f05befe5c (patch)
treee5de216287a6426a683ac7a72795473d36064382 /pkgs/tools/system
parent1f409d0879e410d659c83eb5b0256329a85e22c9 (diff)
parent1278615a4832a8cb691b43a942d0dbce3eb73b9e (diff)
downloadnixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.tar
nixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.tar.gz
nixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.tar.bz2
nixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.tar.lz
nixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.tar.xz
nixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.tar.zst
nixlib-f60459a023a71f929a9c0c9f4a871c0f05befe5c.zip
Merge pull request #55142 from FlorianFranzen/thinkfan_smart
thinkfan: add option for libatasmart support
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/thinkfan/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/system/thinkfan/default.nix b/pkgs/tools/system/thinkfan/default.nix
index b9467902c1f4..dc63b97056a7 100644
--- a/pkgs/tools/system/thinkfan/default.nix
+++ b/pkgs/tools/system/thinkfan/default.nix
@@ -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