diff --git a/pkgs/by-name/nb/nbfc-linux/package.nix b/pkgs/by-name/nb/nbfc-linux/package.nix index eaca2a5ef4c0..171b7f779708 100644 --- a/pkgs/by-name/nb/nbfc-linux/package.nix +++ b/pkgs/by-name/nb/nbfc-linux/package.nix @@ -3,38 +3,58 @@ stdenv, fetchFromGitHub, autoreconfHook, + pkg-config, + lua5_4, curl, + libxml2, + openssl, + nix-update-script, + versionCheckHook, }: stdenv.mkDerivation (finalAttrs: { pname = "nbfc-linux"; - version = "0.3.19"; + version = "0.5.2"; src = fetchFromGitHub { owner = "nbfc-linux"; repo = "nbfc-linux"; tag = finalAttrs.version; - hash = "sha256-ARUhm1K3A0bzVRen6VO3KvomkPl1S7vx2+tmg2ZtL8s="; + hash = "sha256-468/dFRjEgyJ0AW98wKq04WKZ4sZyzswBASSF6hyjVY="; }; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; - buildInputs = [ curl ]; + buildInputs = [ + lua5_4 + curl + libxml2 + openssl + ]; configureFlags = [ - "--prefix=${placeholder "out"}" - "--sysconfdir=${placeholder "out"}/etc" "--bindir=${placeholder "out"}/bin" ]; + passthru.updateScript = nix-update-script { }; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + 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 ]; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ + Celibistrial + bohanubis + ]; mainProgram = "nbfc"; platforms = lib.platforms.linux; };