1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015 Siniša Biđin <sinisa@bidin.eu>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages conky)
20 #:use-module (guix packages)
21 #:use-module (guix utils)
22 #:use-module (guix download)
23 #:use-module (guix git-download)
24 #:use-module (guix build-system cmake)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (gnu packages fontutils)
27 #:use-module (gnu packages ncurses)
28 #:use-module (gnu packages lua)
29 #:use-module (gnu packages pkg-config)
30 #:use-module (gnu packages xorg))
39 (uri (string-append "https://github.com/brndnmtthws/conky/archive/v"
41 (file-name (string-append name "-" version ".tar.gz"))
43 (base32 "1jk0my7z45vz9vd8958d27nkk4kvr53k7wyf6cz2x9xjc0lri02c"))))
44 (build-system cmake-build-system)
46 `(#:tests? #f ; there are no tests
49 ;; XXX: it checks ncurses with pkg-config.
50 ;; TODO: add 'ncurses.pc' to the ncurses package.
51 "-DBUILD_NCURSES=false")
54 'unpack 'add-freetype-to-search-path
55 (lambda* (#:key inputs #:allow-other-keys)
56 (substitute* "cmake/ConkyPlatformChecks.cmake"
57 (("set\\(INCLUDE_SEARCH_PATH")
59 "set(INCLUDE_SEARCH_PATH "
60 (assoc-ref inputs "freetype") "/include/freetype2 ")))
64 (lambda* (#:key outputs #:allow-other-keys)
65 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
67 (install-file "src/conky" bin)))
70 `(("freetype" ,freetype)
73 ("libxdamage" ,libxdamage)
75 ("libxinerama" ,libxinerama)
78 `(("pkg-config" ,pkg-config)))
79 (home-page "https://github.com/brndnmtthws/conky")
80 (synopsis "Lightweight system monitor for X")
82 "Conky is a lightweight system monitor for X that displays operating
83 system statistics (CPU, disk, and memory usage, etc.) and more on the
85 (license license:gpl3+)))