gnu: icecat: Update to 78.10.0-guix0-preview1 [security fixes].
[jackhill/guix/guix.git] / gnu / packages / conky.scm
CommitLineData
555e436e
SB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
ccd0a009 3;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
03d37320 4;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
18edc9db 5;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
555e436e
SB
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages conky)
23 #:use-module (guix packages)
24 #:use-module (guix utils)
25 #:use-module (guix download)
26 #:use-module (guix git-download)
27 #:use-module (guix build-system cmake)
28 #:use-module ((guix licenses) #:prefix license:)
03d37320 29 #:use-module (gnu packages curl)
555e436e 30 #:use-module (gnu packages fontutils)
c92f98ad 31 #:use-module (gnu packages image)
555e436e 32 #:use-module (gnu packages lua)
c92f98ad 33 #:use-module (gnu packages ncurses)
555e436e 34 #:use-module (gnu packages pkg-config)
18edc9db 35 #:use-module (gnu packages pulseaudio)
555e436e
SB
36 #:use-module (gnu packages xorg))
37
38(define-public conky
39 (package
40 (name "conky")
03d37320 41 (home-page "https://github.com/brndnmtthws/conky")
ccd0a009 42 (version "1.11.6")
555e436e
SB
43 (source
44 (origin
03d37320
PN
45 (method git-fetch)
46 (uri (git-reference
47 (url home-page)
48 (commit (string-append "v" version))))
736dfe35 49 (file-name (git-file-name name version))
555e436e 50 (sha256
ccd0a009 51 (base32 "0y2g66fjqp2hdk0y1h4ijxhnv34j16gizvxpmbigwh4n6zijcm6v"))))
555e436e
SB
52 (build-system cmake-build-system)
53 (arguments
d7c2c4bd 54 `(#:tests? #f ; there are no tests
8b5ed303 55 #:configure-flags
18edc9db
VD
56 (list "-DRELEASE=true"
57 "-DBUILD_PULSEAUDIO=ON")
555e436e 58 #:phases
dc1d3cde
KK
59 (modify-phases %standard-phases
60 (add-after 'unpack 'add-freetype-to-search-path
61 (lambda* (#:key inputs #:allow-other-keys)
62 (substitute* "cmake/ConkyPlatformChecks.cmake"
63 (("set\\(INCLUDE_SEARCH_PATH")
64 (string-append
65 "set(INCLUDE_SEARCH_PATH "
66 (assoc-ref inputs "freetype") "/include/freetype2 ")))
67 #t))
68 (replace 'install
69 (lambda* (#:key outputs #:allow-other-keys)
e6d30cf7
TGR
70 (let* ((out (assoc-ref outputs "out"))
71 (bin (string-append out "/bin")))
dc1d3cde
KK
72 (install-file "src/conky" bin))
73 #t)))))
555e436e
SB
74 (inputs
75 `(("freetype" ,freetype)
c92f98ad 76 ("imlib2" ,imlib2)
555e436e
SB
77 ("libx11" ,libx11)
78 ("libxdamage" ,libxdamage)
c92f98ad 79 ("libxext" ,libxext)
555e436e 80 ("libxft" ,libxft)
8b5ed303 81 ("libxinerama" ,libxinerama)
1628d57b 82 ("pulseaudio" ,pulseaudio)
c92f98ad 83 ("lua" ,lua)
03d37320
PN
84 ("ncurses" ,ncurses)
85 ("curl" ,curl)))
555e436e
SB
86 (native-inputs
87 `(("pkg-config" ,pkg-config)))
555e436e
SB
88 (synopsis "Lightweight system monitor for X")
89 (description
90 "Conky is a lightweight system monitor for X that displays operating
91system statistics (CPU, disk, and memory usage, etc.) and more on the
92desktop.")
7bce9fa5 93 (license license:gpl3+)))