42 lines
941 B
Nix
42 lines
941 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
autoreconfHook,
|
||
|
|
curl,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
|
pname = "nbfc-linux";
|
||
|
|
version = "0.3.19";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "nbfc-linux";
|
||
|
|
repo = "nbfc-linux";
|
||
|
|
tag = "${finalAttrs.version}";
|
||
|
|
hash = "sha256-ARUhm1K3A0bzVRen6VO3KvomkPl1S7vx2+tmg2ZtL8s=";
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [ autoreconfHook ];
|
||
|
|
|
||
|
|
buildInputs = [ curl ];
|
||
|
|
|
||
|
|
configureFlags = [
|
||
|
|
"--prefix=${placeholder "out"}"
|
||
|
|
"--sysconfdir=${placeholder "out"}/etc"
|
||
|
|
"--bindir=${placeholder "out"}/bin"
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "C port of Stefan Hirschmann's NoteBook FanControl";
|
||
|
|
longDescription = ''
|
||
|
|
nbfc-linux provides fan control service for notebooks
|
||
|
|
'';
|
||
|
|
homepage = "https://github.com/nbfc-linux/nbfc-linux";
|
||
|
|
license = lib.licenses.gpl3;
|
||
|
|
maintainers = [ lib.maintainers.Celibistrial ];
|
||
|
|
mainProgram = "nbfc";
|
||
|
|
platforms = lib.platforms.linux;
|
||
|
|
};
|
||
|
|
})
|