nixpkgs/pkgs/applications/misc/ola/default.nix

33 lines
979 B
Nix
Raw Normal View History

2017-07-19 18:00:38 +01:00
{ stdenv, fetchFromGitHub, autoreconfHook, bison, flex, pkgconfig
, libuuid, cppunit, protobuf3_1, zlib, avahi, libmicrohttpd
2017-07-19 18:00:38 +01:00
, perl, python3, python3Packages
}:
stdenv.mkDerivation rec {
name = "ola-${version}";
version = "0.10.7";
2017-07-19 18:00:38 +01:00
src = fetchFromGitHub {
owner = "OpenLightingProject";
repo = "ola";
rev = version;
sha256 = "18krwrw7w1qzwih8gnmv7r4sah5ppvq7ax65r7l5yjxn3ihwp2kf";
2017-07-19 18:00:38 +01:00
};
nativeBuildInputs = [ autoreconfHook bison flex pkgconfig perl ];
buildInputs = [ libuuid cppunit protobuf3_1 zlib avahi libmicrohttpd python3 ];
propagatedBuildInputs = [
(python3Packages.protobuf.override { protobuf = protobuf3_1; })
python3Packages.numpy
];
2017-07-19 18:00:38 +01:00
configureFlags = [ "--enable-python-libs" ];
meta = with stdenv.lib; {
description = "A framework for controlling entertainment lighting equipment.";
maintainers = [ maintainers.globin ];
license = with licenses; [ lgpl21 gpl2Plus ];
2017-07-19 18:00:38 +01:00
platforms = platforms.all;
};
}