about summary refs log tree commit diff
path: root/pkgs/tools/system/thinkfan/default.nix
blob: 3e97a4b64a3113ec51e63f48532aab34123b4fba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchurl, cmake }:

stdenv.mkDerivation rec {
  name = "thinkfan-${version}";
  version = "0.9.2";

  src = fetchurl {
    url = "mirror://sourceforge/thinkfan/thinkfan-${version}.tar.gz";
    sha256 = "0ydgabk2758f6j64g1r9vdsd221nqsv5rwnphm81s7i2vgra1nlh";
  };

  nativeBuildInputs = [ cmake ];

  unpackPhase = ''
    sourceRoot="$PWD/${name}";
    mkdir $sourceRoot;
    tar xzvf "$src" -C $sourceRoot;
  '';

  installPhase = ''
    mkdir -p $out/bin;
    mv thinkfan $out/bin/;
  '';

  meta = {
    description = "";
    license = stdenv.lib.licenses.gpl3;
    homepage = "http://thinkfan.sourceforge.net/";
    maintainers = with stdenv.lib.maintainers; [ iElectric ];
    platforms = stdenv.lib.platforms.linux;
  };
}