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

47 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-06-21 22:37:34 +00:00
, fetchFromGitHub
, autoreconfHook
, bison
, flex
, pkg-config
2020-06-21 22:37:34 +00:00
, libuuid
, cppunit
, protobuf
, zlib
, avahi
, libmicrohttpd
, perl
, python3
2017-07-19 17:00:38 +00:00
}:
stdenv.mkDerivation rec {
pname = "ola";
2020-06-21 22:37:34 +00:00
version = "unstable-2020-07-17";
2017-07-19 17:00:38 +00:00
src = fetchFromGitHub {
owner = "OpenLightingProject";
repo = "ola";
2020-06-21 22:37:34 +00:00
rev = "e2cd699c7792570500578fd092fb6bfb3d511023"; # HEAD of "0.10" branch
sha256 = "17a3z3zhx00rjk58icd3zlqfw3753f3y8bwy2sza0frdim09lqr4";
2017-07-19 17:00:38 +00:00
};
nativeBuildInputs = [ autoreconfHook bison flex pkg-config perl ];
2020-06-21 22:37:34 +00:00
buildInputs = [ libuuid cppunit protobuf zlib avahi libmicrohttpd python3 ];
propagatedBuildInputs = [
2020-06-21 22:37:34 +00:00
python3.pkgs.protobuf
python3.pkgs.numpy
];
2017-07-19 17:00:38 +00:00
configureFlags = [ "--enable-python-libs" ];
enableParallelBuilding = true;
meta = with lib; {
description = "A framework for controlling entertainment lighting equipment";
2020-06-21 22:37:34 +00:00
homepage = "https://www.openlighting.org/ola/";
maintainers = with maintainers; [ globin ];
license = with licenses; [ lgpl21 gpl2Plus ];
2017-07-19 17:00:38 +00:00
platforms = platforms.all;
};
}