6 # Testing this requires a Thinkpad or the presence of /proc/acpi/ibm/fan
7 stdenv.mkDerivation (finalAttrs: {
11 src = fetchFromGitHub {
14 rev = finalAttrs.version;
15 hash = "sha256-zpYQEHXt8LBNX+luM4YxP0dKH+hb2c8Z0BEeGP09oZo=";
19 substituteInPlace Makefile \
20 --replace "/usr/local" $out
23 doInstallCheck = true;
25 installCheckPhase = ''
26 runHook preInstallCheck
28 $out/bin/${finalAttrs.pname} -h
30 runHook postInstallCheck
34 description = "Zero-configuration fan daemon for ThinkPads";
35 mainProgram = "zcfan";
36 homepage = "https://github.com/cdown/zcfan";
37 changelog = "https://github.com/cdown/zcfan/tags/${finalAttrs.version}";
38 license = licenses.mit;
39 maintainers = with maintainers; [ kashw2 ];
40 platforms = platforms.linux;