2017-07-19 19:00:38 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, pkgconfig
|
2017-09-08 20:24:14 +02:00
|
|
|
, libuuid, cppunit, protobuf3_1, zlib, avahi, libmicrohttpd
|
2018-12-15 12:31:45 +01:00
|
|
|
, perl, python36 # Replace by python3 after the next update
|
2017-07-19 19:00:38 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ola-${version}";
|
2018-07-21 22:24:45 +02:00
|
|
|
version = "0.10.7";
|
2017-07-19 19:00:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenLightingProject";
|
|
|
|
repo = "ola";
|
|
|
|
rev = version;
|
2018-07-21 22:24:45 +02:00
|
|
|
sha256 = "18krwrw7w1qzwih8gnmv7r4sah5ppvq7ax65r7l5yjxn3ihwp2kf";
|
2017-07-19 19:00:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook bison flex pkgconfig perl ];
|
2018-12-15 12:31:45 +01:00
|
|
|
buildInputs = [ libuuid cppunit protobuf3_1 zlib avahi libmicrohttpd python36 ];
|
2018-11-10 13:35:29 +01:00
|
|
|
propagatedBuildInputs = [
|
2018-12-15 12:31:45 +01:00
|
|
|
(python36.pkgs.protobuf.override { protobuf = protobuf3_1; })
|
|
|
|
python36.pkgs.numpy
|
2018-11-10 13:35:29 +01:00
|
|
|
];
|
2017-07-19 19:00:38 +02:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-python-libs" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A framework for controlling entertainment lighting equipment.";
|
|
|
|
maintainers = [ maintainers.globin ];
|
2017-12-05 23:20:11 +01:00
|
|
|
license = with licenses; [ lgpl21 gpl2Plus ];
|
2017-07-19 19:00:38 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|