projects/guix·blob python-team · refs

83 lines · 3.5 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 John J. Foerch <[email protected]>
3;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <[email protected]>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages lighting)
21 #:use-module (guix build-system gnu)
22 #:use-module (guix gexp)
23 #:use-module (guix git-download)
24 #:use-module ((guix licenses) #:prefix license:)
25 #:use-module (guix packages)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages autotools)
28 #:use-module (gnu packages bison)
29 #:use-module (gnu packages check)
30 #:use-module (gnu packages compression)
31 #:use-module (gnu packages gnunet)
32 #:use-module (gnu packages compiler-tools)
33 #:use-module (gnu packages libftdi)
34 #:use-module (gnu packages libusb)
35 #:use-module (gnu packages linux)
36 #:use-module (gnu packages pkg-config)
37 #:use-module (gnu packages protobuf))
38
39(define-public ola
40 (package
41 (name "ola")
42 (version "0.10.9")
43 (source
44 (origin
45 (method git-fetch)
46 (uri (git-reference
47 (url "https://github.com/OpenLightingProject/ola")
48 (commit version)))
49 (sha256
50 (base32 "0mbf5dc309pqg9ckqgk2kh9p3mf9vqsjkxnwjzqw7yzzf17ij3zk"))
51 (file-name (git-file-name name version))))
52 (build-system gnu-build-system)
53 (native-inputs (list bison
54 cppunit
55 flex
56 pkg-config
57 ;; For git repository bootstrapping.
58 autoconf
59 automake
60 libtool))
61 (inputs (list libftdi libmicrohttpd libusb
62 `(,util-linux "lib") zlib))
63 (propagated-inputs (list protobuf)) ;for pkg-config --libs libola
64 (arguments
65 (list
66 ;; G++ >= 4.8 macro expansion tracking requires lots of memory, causing
67 ;; build to fail on low memory systems. We disable that with the
68 ;; following configure flags.
69 ;; We also have to omit: use of std::auto_ptr is deprecated, and template-id not allowed for constructor in C++20
70 #:configure-flags
71 #~(list
72 "CXXFLAGS=-ftrack-macro-expansion=0 -Wno-error=deprecated-declarations -Wno-template-id-cdtor")))
73 (synopsis "Framework for controlling entertainment lighting equipment")
74 (description
75 "The Open Lighting Architecture is a framework for lighting
76control information. It supports a range of protocols and over a dozen USB
77devices. It can run as a standalone service, which is useful for converting
78signals between protocols, or alternatively using the OLA API, it can be used
79as the backend for lighting control software. OLA runs on many different
80platforms including ARM, which makes it a perfect fit for low cost Ethernet to
81DMX gateways.")
82 (home-page "https://www.openlighting.org/ola")
83 (license license:lgpl2.1+)))