gnu: services: Add nginx-service.
[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>
3;;;
4;;; This file is part of GNU Guix.
5;;;
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.
10;;;
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.
15;;;
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/>.
18
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))
31
32(define-public conky
33 (package
34 (name "conky")
35 (version "1.10.0")
36 (source
37 (origin
38 (method url-fetch)
39 (uri (string-append "https://github.com/brndnmtthws/conky/archive/v"
40 version ".tar.gz"))
41 (file-name (string-append name "-" version ".tar.gz"))
42 (sha256
43 (base32 "1szq4ckfkvyabv5llf9nkdxipn7429sralsxyr7z0dyc3zwz74pk"))))
44 (build-system cmake-build-system)
45 (arguments
46 `(#:tests? #f ; there are no tests
47 #:phases
48 (alist-cons-after
49 'unpack 'add-freetype-to-search-path
50 (lambda* (#:key inputs #:allow-other-keys)
51 (substitute* "cmake/ConkyPlatformChecks.cmake"
52 (("set\\(INCLUDE_SEARCH_PATH")
53 (string-append
54 "set(INCLUDE_SEARCH_PATH "
55 (assoc-ref inputs "freetype") "/include/freetype2 ")))
56 #t)
57 (alist-replace
58 'install
59 (lambda* (#:key outputs #:allow-other-keys)
60 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
61 (mkdir-p bin)
62 (copy-file "src/conky" (string-append bin "/conky"))))
63 %standard-phases))))
64 (inputs
65 `(("freetype" ,freetype)
66 ("ncurses" ,ncurses)
67 ("libx11" ,libx11)
68 ("libxdamage" ,libxdamage)
69 ("libxft" ,libxft)
70 ("lua" ,lua)))
71 (native-inputs
72 `(("pkg-config" ,pkg-config)))
73 (home-page "https://github.com/brndnmtthws/conky")
74 (synopsis "Lightweight system monitor for X")
75 (description
76 "Conky is a lightweight system monitor for X that displays operating
77system statistics (CPU, disk, and memory usage, etc.) and more on the
78desktop.")
79 (license (list license:bsd-3 license:gpl3))))