diff options
author | Christine Koppelt <cko@users.noreply.github.com> | 2019-09-25 00:33:22 +0200 |
---|---|---|
committer | Christine Koppelt <cko@users.noreply.github.com> | 2019-09-25 00:33:22 +0200 |
commit | c3a562f3e2affed5b583230a63841fe9191cd193 (patch) | |
tree | afd00d605b692a13f0887703b107505c5f4203be /pkgs/tools/system | |
parent | 482a9537b2718300455544ef482432501ba87fa0 (diff) | |
download | nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.tar nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.tar.gz nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.tar.bz2 nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.tar.lz nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.tar.xz nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.tar.zst nixlib-c3a562f3e2affed5b583230a63841fe9191cd193.zip |
addressing remarks from @peterhoeg ( thinkfan: 0.9.3 -> 1.0.2)
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/thinkfan/default.nix | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/pkgs/tools/system/thinkfan/default.nix b/pkgs/tools/system/thinkfan/default.nix index f5a8a48c9f2e..60d47dab20e6 100644 --- a/pkgs/tools/system/thinkfan/default.nix +++ b/pkgs/tools/system/thinkfan/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, cmakeCurses, libyamlcpp, pkgconfig +{ stdenv, fetchFromGitHub, cmake, libyamlcpp, pkgconfig , smartSupport ? false, libatasmart }: stdenv.mkDerivation rec { @@ -12,18 +12,14 @@ stdenv.mkDerivation rec { sha256 = "107vw0962hrwva3wra9n3hxlbfzg82ldc10qssv3dspja88g8psr"; }; - configureFlags = [ + cmakeFlags = [ "-DCMAKE_INSTALL_DOCDIR=share/doc/${pname}" "-DUSE_NVML=OFF" - "-DUSE_ATASMART=ON" - "-DUSE_YAML=ON" - ]; + ] ++ stdenv.lib.optional smartSupport "-DUSE_ATASMART=ON"; - nativeBuildInputs = [ cmakeCurses pkgconfig ]; + nativeBuildInputs = [ cmake pkgconfig ]; - buildInputs = [libyamlcpp] ++ stdenv.lib.optional smartSupport libatasmart; - - cmakeFlags = stdenv.lib.optional smartSupport "-DUSE_ATASMART=ON"; + buildInputs = [ libyamlcpp ] ++ stdenv.lib.optional smartSupport libatasmart; installPhase = '' install -Dm755 {.,$out/bin}/thinkfan @@ -34,10 +30,10 @@ stdenv.mkDerivation rec { install -Dm644 {src,$out/share/man/man1}/thinkfan.1 ''; - meta = { - license = stdenv.lib.licenses.gpl3; - homepage = https://github.com/vmatare/thinkfan; - maintainers = with stdenv.lib.maintainers; [ domenkozar ]; - platforms = stdenv.lib.platforms.linux; + meta = with stdenv.lib; { + license = licenses.gpl3; + homepage = "https://github.com/vmatare/thinkfan"; + maintainers = with maintainers; [ domenkozar ]; + platforms = platforms.linux; }; } |