Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 curl,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "nbfc-linux";
11 version = "0.3.19";
12
13 src = fetchFromGitHub {
14 owner = "nbfc-linux";
15 repo = "nbfc-linux";
16 tag = "${finalAttrs.version}";
17 hash = "sha256-ARUhm1K3A0bzVRen6VO3KvomkPl1S7vx2+tmg2ZtL8s=";
18 };
19
20 nativeBuildInputs = [ autoreconfHook ];
21
22 buildInputs = [ curl ];
23
24 configureFlags = [
25 "--prefix=${placeholder "out"}"
26 "--sysconfdir=${placeholder "out"}/etc"
27 "--bindir=${placeholder "out"}/bin"
28 ];
29
30 meta = {
31 description = "C port of Stefan Hirschmann's NoteBook FanControl";
32 longDescription = ''
33 nbfc-linux provides fan control service for notebooks
34 '';
35 homepage = "https://github.com/nbfc-linux/nbfc-linux";
36 license = lib.licenses.gpl3;
37 maintainers = [ lib.maintainers.Celibistrial ];
38 mainProgram = "nbfc";
39 platforms = lib.platforms.linux;
40 };
41})