1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
3 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
4 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
6 ;;; This file is part of GNU Guix.
8 ;;; GNU Guix is free software; you can redistribute it and/or modify it
9 ;;; under the terms of the GNU General Public License as published by
10 ;;; the Free Software Foundation; either version 3 of the License, or (at
11 ;;; your option) any later version.
13 ;;; GNU Guix is distributed in the hope that it will be useful, but
14 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;;; GNU General Public License for more details.
18 ;;; You should have received a copy of the GNU General Public License
19 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21 (define-module (gnu packages conky)
22 #:use-module (guix packages)
23 #:use-module (guix utils)
24 #:use-module (guix download)
25 #:use-module (guix git-download)
26 #:use-module (guix build-system cmake)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (gnu packages curl)
29 #:use-module (gnu packages fontutils)
30 #:use-module (gnu packages image)
31 #:use-module (gnu packages lua)
32 #:use-module (gnu packages ncurses)
33 #:use-module (gnu packages pkg-config)
34 #:use-module (gnu packages xorg))
39 (home-page "https://github.com/brndnmtthws/conky")
46 (commit (string-append "v" version))))
47 (file-name (git-file-name name version))
49 (base32 "1a75ss48mn9pknrxy33dh5rdgm67a5kpddsyqfhlcn1761kfzzyp"))))
50 (build-system cmake-build-system)
52 `(#:tests? #f ; there are no tests
54 (list "-DRELEASE=true")
56 (modify-phases %standard-phases
57 (add-after 'unpack 'add-freetype-to-search-path
58 (lambda* (#:key inputs #:allow-other-keys)
59 (substitute* "cmake/ConkyPlatformChecks.cmake"
60 (("set\\(INCLUDE_SEARCH_PATH")
62 "set(INCLUDE_SEARCH_PATH "
63 (assoc-ref inputs "freetype") "/include/freetype2 ")))
66 (lambda* (#:key outputs #:allow-other-keys)
67 (let* ((out (assoc-ref outputs "out"))
68 (bin (string-append out "/bin")))
69 (install-file "src/conky" bin))
72 `(("freetype" ,freetype)
75 ("libxdamage" ,libxdamage)
78 ("libxinerama" ,libxinerama)
83 `(("pkg-config" ,pkg-config)))
84 (synopsis "Lightweight system monitor for X")
86 "Conky is a lightweight system monitor for X that displays operating
87 system statistics (CPU, disk, and memory usage, etc.) and more on the
89 (license license:gpl3+)))