projects/guix·blob javascript-team · refs

103 lines · 4.1 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Mark H Weaver <[email protected]>
3;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <[email protected]>
4;;; Copyright © 2025 Janneke Nieuwenhuizen <[email protected]>
5;;;
6;;; This file is part of GNU Guix.
7;;;
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.
12;;;
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.
17;;;
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/>.
20
21(define-module (gnu packages rrdtool)
22 #:use-module (guix git-download)
23 #:use-module (gnu packages)
24 #:use-module (gnu packages algebra)
25 #:use-module (gnu packages autotools)
26 #:use-module (gnu packages base)
27 #:use-module (gnu packages fontutils)
28 #:use-module (gnu packages gettext)
29 #:use-module (gnu packages glib)
30 #:use-module (gnu packages groff)
31 #:use-module (gnu packages gtk)
32 #:use-module (gnu packages perl)
33 #:use-module (gnu packages pkg-config)
34 #:use-module (gnu packages python)
35 #:use-module (gnu packages python-build)
36 #:use-module (gnu packages xml)
37 #:use-module (guix build-system gnu)
38 #:use-module (guix download)
39 #:use-module (guix gexp)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (guix packages))
42
43(define-public rrdtool
44 (package
45 (name "rrdtool")
46 (version "1.9.0")
47 (source (origin
48 (method git-fetch)
49 (uri (git-reference
50 (url "https://github.com/oetiker/rrdtool-1.x")
51 (commit (string-append "v" version))))
52 (file-name (git-file-name name version))
53 (sha256
54 (base32
55 "1h9zv9yxvcf86g4zp4g3k45vk1np8zaqisk9ixgxkc58b6xx5xh8"))))
56 (build-system gnu-build-system)
57 (inputs
58 (list cairo
59 freetype
60 glib
61 libxml2
62 pango
63 python))
64 (native-inputs
65 (list autoconf
66 automake
67 gettext-minimal
68 groff
69 libtool
70 pkg-config
71 python-setuptools
72 ;; For tests.
73 bc
74 perl ; will also build Perl bindings
75 tzdata-for-tests))
76 (arguments
77 (list
78 #:disallowed-references (list (this-package-native-input "tzdata"))
79 #:phases
80 #~(modify-phases %standard-phases
81 (add-before 'check 'prepare-test-environment
82 (lambda* (#:key inputs #:allow-other-keys)
83 (setenv "TZDIR"
84 (search-input-directory inputs "share/zoneinfo"))))
85 (add-after 'install 'remove-native-input-references
86 (lambda _
87 (let ((examples (string-append #$output
88 "/share/rrdtool/examples")))
89 ;; Drop shebangs from examples to avoid depending on native-input
90 ;; perl. It's clear from context and extension how to run them.
91 (substitute* (find-files examples "\\.pl$")
92 (("^#!.*") ""))))))))
93 (home-page "https://oss.oetiker.ch/rrdtool/")
94 (synopsis "Time-series data storage and display system")
95 (description
96 "The Round Robin Database Tool (RRDtool) is a system to store and display
97time-series data (e.g. network bandwidth, machine-room temperature, server
98load average). It stores the data in Round Robin Databases (RRDs), a very
99compact way that will not expand over time. RRDtool processes the extracted
100data to enforce a certain data density, allowing for useful graphical
101representation of data values.")
102 (license license:gpl2+))) ; with license exception that allows combining
103 ; with many other licenses.