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