From e00ce8c983c71f554eac2a755206bb4651ed6bba Mon Sep 17 00:00:00 2001 From: Christine Koppelt Date: Sun, 29 Sep 2019 23:59:13 +0200 Subject: [PATCH] addressing remarks from @peterhoeg ( thinkfan: 0.9.3 -> 1.0.2) --- pkgs/tools/system/thinkfan/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/system/thinkfan/default.nix b/pkgs/tools/system/thinkfan/default.nix index e0a061a45b88..f3b4ab8440e3 100644 --- a/pkgs/tools/system/thinkfan/default.nix +++ b/pkgs/tools/system/thinkfan/default.nix @@ -22,12 +22,16 @@ stdenv.mkDerivation rec { buildInputs = [ libyamlcpp ] ++ stdenv.lib.optional smartSupport libatasmart; installPhase = '' + runHook preInstall + install -Dm755 {.,$out/bin}/thinkfan cd "$NIX_BUILD_TOP"; cd "$sourceRoot" # attempt to be a bit robust install -Dm644 {.,$out/share/doc/thinkfan}/README cp -R examples $out/share/doc/thinkfan install -Dm644 {src,$out/share/man/man1}/thinkfan.1 + + runHook postInstall ''; meta = with stdenv.lib; {