From 124d66843469e8df8f3dd645bba422afed08d996 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Mon, 3 Jun 2024 11:26:50 +0200 Subject: implement nbfc service --- upstream/packages/nbfc.scm | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 upstream/packages/nbfc.scm (limited to 'upstream/packages') diff --git a/upstream/packages/nbfc.scm b/upstream/packages/nbfc.scm new file mode 100644 index 0000000..0190d0c --- /dev/null +++ b/upstream/packages/nbfc.scm @@ -0,0 +1,56 @@ +(define-module (upstream packages nbfc) + #:use-module (gnu packages admin) + #:use-module (gnu packages autotools) + #:use-module (gnu packages linux) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (guix utils) + #:use-module (guix build utils) + #:use-module (guix build-system gnu) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages)) + +(define-public nbfc-linux + (let ((version "0.1.12") + (commit "a7d0bb68e934ab88906a9410363b6481a2afca4c") + (revision "0")) + (package + (name "nbfc-linux") + (version (git-version version revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nbfc-linux/nbfc-linux") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04spib9j9218vyhv5mbdd0p5bxsn1gxbh0kcbl5vgqig5r6nzkf7")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" + ,(cc-for-target)) + (string-append "PREFIX=" + (assoc-ref %outputs "out")) + ;; (string-append "CONFDIR=" + ;; (assoc-ref %outputs "out") + ;; "/etc") + ;; (string-append "BINDIR=" + ;; (assoc-ref %outputs "out") + ;; "/bin") + ) + #:tests? #f + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (native-inputs (list autoconf pkg-config)) + (inputs (list kmod)) + (propagated-inputs (list python dmidecode)) + (synopsis "NoteBook FanControl ported to Linux") + (description + "This package provides a C port of NoteBook FanControl (NBFC), a fan +control service for notebooks. It provides the same utilities with the same +interfaces as the original NBFC, although the implementation differs.") + (home-page "https://github.com/nbfc-linux/nbfc-linux") + (license license:gpl3+)))) -- cgit v1.2.3