2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
|
|
|
, flex
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2022-12-02 08:20:57 +00:00
|
|
|
, libftdi1
|
2020-08-20 17:08:02 +00:00
|
|
|
, libuuid
|
|
|
|
, cppunit
|
|
|
|
, protobuf
|
|
|
|
, zlib
|
|
|
|
, avahi
|
|
|
|
, libmicrohttpd
|
|
|
|
, perl
|
|
|
|
, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ola";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "unstable-2020-07-17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenLightingProject";
|
|
|
|
repo = "ola";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "e2cd699c7792570500578fd092fb6bfb3d511023"; # HEAD of "0.10" branch
|
|
|
|
sha256 = "17a3z3zhx00rjk58icd3zlqfw3753f3y8bwy2sza0frdim09lqr4";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex pkg-config perl ];
|
2022-12-02 08:20:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
# required for ola-ftdidmx plugin (support for 'dumb' FTDI devices)
|
|
|
|
libftdi1
|
|
|
|
libuuid
|
|
|
|
cppunit
|
|
|
|
protobuf
|
|
|
|
zlib
|
|
|
|
avahi
|
|
|
|
libmicrohttpd
|
|
|
|
python3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
(python3.pkgs.protobuf.override { protobuf = protobuf; })
|
2020-08-20 17:08:02 +00:00
|
|
|
python3.pkgs.numpy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-python-libs" ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Framework for controlling entertainment lighting equipment";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://www.openlighting.org/ola/";
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ lgpl21 gpl2Plus ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|