2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-06-21 23:37:34 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
|
|
|
, flex
|
2021-01-17 02:09:27 +00:00
|
|
|
, pkg-config
|
2022-08-21 09:51:18 +01:00
|
|
|
, libftdi1
|
2020-06-21 23:37:34 +01:00
|
|
|
, libuuid
|
|
|
|
, cppunit
|
|
|
|
, protobuf
|
|
|
|
, zlib
|
|
|
|
, avahi
|
|
|
|
, libmicrohttpd
|
|
|
|
, perl
|
|
|
|
, python3
|
2017-07-19 18:00:38 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ola";
|
2024-09-05 10:05:05 +01:00
|
|
|
version = "0.10.9";
|
2017-07-19 18:00:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenLightingProject";
|
|
|
|
repo = "ola";
|
2024-09-05 10:05:05 +01:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-8w8ZT3D/+8Pxl9z2KTXeydVxE5xiPjxZevgmMFgrblU=";
|
2017-07-19 18:00:38 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex pkg-config perl ];
|
2022-08-21 09:51:18 +01:00
|
|
|
buildInputs = [
|
|
|
|
# required for ola-ftdidmx plugin (support for 'dumb' FTDI devices)
|
|
|
|
libftdi1
|
|
|
|
libuuid
|
|
|
|
cppunit
|
|
|
|
protobuf
|
|
|
|
zlib
|
|
|
|
avahi
|
|
|
|
libmicrohttpd
|
|
|
|
python3
|
|
|
|
];
|
2018-11-10 12:35:29 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-09-02 11:45:51 +01:00
|
|
|
(python3.pkgs.protobuf4.override { protobuf = protobuf; })
|
2020-06-21 23:37:34 +01:00
|
|
|
python3.pkgs.numpy
|
2018-11-10 12:35:29 +00:00
|
|
|
];
|
2017-07-19 18:00:38 +01:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-python-libs" ];
|
|
|
|
|
2020-07-17 16:25:02 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 14:28:44 +01:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Framework for controlling entertainment lighting equipment";
|
2020-06-21 23:37:34 +01:00
|
|
|
homepage = "https://www.openlighting.org/ola/";
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2017-12-05 22:20:11 +00:00
|
|
|
license = with licenses; [ lgpl21 gpl2Plus ];
|
2017-07-19 18:00:38 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|