about summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2016-05-07 16:41:09 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2016-05-08 00:44:49 +0200
commit519d99f9750932e5e6a31e51265d68556cb093ea (patch)
treedfcf0cf91ff5156ed8d4084c17b8066fb90fda3e /pkgs/tools/system
parentee101d0c7aeb88d2189a403a35f4b7ed03aee559 (diff)
downloadnixlib-519d99f9750932e5e6a31e51265d68556cb093ea.tar
nixlib-519d99f9750932e5e6a31e51265d68556cb093ea.tar.gz
nixlib-519d99f9750932e5e6a31e51265d68556cb093ea.tar.bz2
nixlib-519d99f9750932e5e6a31e51265d68556cb093ea.tar.lz
nixlib-519d99f9750932e5e6a31e51265d68556cb093ea.tar.xz
nixlib-519d99f9750932e5e6a31e51265d68556cb093ea.tar.zst
nixlib-519d99f9750932e5e6a31e51265d68556cb093ea.zip
thinkfan: 0.9.2 -> 0.9.3; add myself as a maintainer
CC maintainer @iElectric.
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/thinkfan/default.nix16
1 files changed, 5 insertions, 11 deletions
diff --git a/pkgs/tools/system/thinkfan/default.nix b/pkgs/tools/system/thinkfan/default.nix
index 170d3b3305ed..e4f927d4844e 100644
--- a/pkgs/tools/system/thinkfan/default.nix
+++ b/pkgs/tools/system/thinkfan/default.nix
@@ -2,34 +2,28 @@
 
 stdenv.mkDerivation rec {
   name = "thinkfan-${version}";
-  version = "0.9.2";
+  version = "0.9.3";
 
   src = fetchurl {
     url = "mirror://sourceforge/thinkfan/thinkfan-${version}.tar.gz";
-    sha256 = "0ydgabk2758f6j64g1r9vdsd221nqsv5rwnphm81s7i2vgra1nlh";
+    sha256 = "0nz4c48f0i0dljpk5y33c188dnnwg8gz82s4grfl8l64jr4n675n";
   };
 
   nativeBuildInputs = [ cmake ];
 
-  unpackPhase = ''
-    sourceRoot="$PWD/${name}";
-    mkdir $sourceRoot;
-    tar xzvf "$src" -C $sourceRoot;
-  '';
-
   installPhase = ''
     install -Dm755 {.,$out/bin}/thinkfan
 
-    cd $sourceRoot
+    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 {.,$out/share/man/man1}/thinkfan.1
+    install -Dm644 {src,$out/share/man/man1}/thinkfan.1
   '';
 
   meta = {
     license = stdenv.lib.licenses.gpl3;
     homepage = http://thinkfan.sourceforge.net/;
-    maintainers = with stdenv.lib.maintainers; [ iElectric ];
+    maintainers = with stdenv.lib.maintainers; [ iElectric nckx ];
     platforms = stdenv.lib.platforms.linux;
   };
 }