summaryrefslogtreecommitdiff
path: root/upstream/packages
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-06-03 11:26:50 +0200
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-06-06 08:47:46 +0200
commit124d66843469e8df8f3dd645bba422afed08d996 (patch)
tree72229eef87f71feb3f6478964f0112f285aa3a8c /upstream/packages
parentaa176e3901c108038c6a92734afc34f0ef3a7123 (diff)
implement nbfc service
Diffstat (limited to 'upstream/packages')
-rw-r--r--upstream/packages/nbfc.scm56
1 files changed, 56 insertions, 0 deletions
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+))))