mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
zcfan: init at 1.2.1
This commit is contained in:
parent
f95a262d75
commit
7a7d94c242
41
pkgs/by-name/zc/zcfan/package.nix
Normal file
41
pkgs/by-name/zc/zcfan/package.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
# Testing this requires a Thinkpad or the presence of /proc/acpi/ibm/fan
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "zcfan";
|
||||||
|
version = "1.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "cdown";
|
||||||
|
repo = "zcfan";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-XngchR06HP2iExKJVe+XKBDgsv98AEYWOkl1a/Hktgs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace "/usr/local" $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
|
||||||
|
$out/bin/${finalAttrs.pname} -h
|
||||||
|
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A zero-configuration fan daemon for ThinkPads";
|
||||||
|
homepage = "https://github.com/cdown/zcfan";
|
||||||
|
changelog = "https://github.com/cdown/zcfan/tags/${finalAttrs.version}";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ kashw2 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue