about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorChristine Koppelt <cko@users.noreply.github.com>2019-09-29 23:59:13 +0200
committerChristine Koppelt <cko@users.noreply.github.com>2019-09-29 23:59:13 +0200
commite00ce8c983c71f554eac2a755206bb4651ed6bba (patch)
tree9c7b1475571a18f6e124d7233ec7b23aaf15de02 /pkgs/tools/system
parent3966d0d30091a9113f76f2e96e33196784c3caf0 (diff)
downloadnixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.tar
nixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.tar.gz
nixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.tar.bz2
nixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.tar.lz
nixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.tar.xz
nixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.tar.zst
nixlib-e00ce8c983c71f554eac2a755206bb4651ed6bba.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.nix4
1 files changed, 4 insertions, 0 deletions
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; {