From ba10aacec83edb0acf6f176a8041e09326ebaaf3 Mon Sep 17 00:00:00 2001 From: Gaurav Choudhury Date: Thu, 27 Jun 2024 18:06:00 +0530 Subject: [PATCH] nbfc-linux: init at 0.1.15 --- pkgs/by-name/nb/nbfc-linux/package.nix | 38 ++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/nb/nbfc-linux/package.nix diff --git a/pkgs/by-name/nb/nbfc-linux/package.nix b/pkgs/by-name/nb/nbfc-linux/package.nix new file mode 100644 index 000000000000..4e4e5bd4b374 --- /dev/null +++ b/pkgs/by-name/nb/nbfc-linux/package.nix @@ -0,0 +1,38 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "nbfc-linux"; + version = "0.1.15"; + + src = fetchFromGitHub { + owner = "nbfc-linux"; + repo = "nbfc-linux"; + rev = "${finalAttrs.version}"; + hash = "sha256-+xYr2uIxfMaMAaHGvvA+0WPZjwj3wVAc34e1DWsJLqE="; + }; + + nativeBuildInputs = [ + autoreconfHook + ]; + 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; + }; +})