summaryrefslogtreecommitdiff
path: root/upstream/packages/nbfc.scm
blob: 0190d0cd36ad49617e762247405af19657a41ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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+))))