(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 "a7d0bb68e934ab88906a9410363b6481a2afca4d") (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)) (patches (list (local-file "nbfc.patch"))) (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+))))