1{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "libebml-${version}";
5 version = "1.3.6";
6
7 src = fetchFromGitHub {
8 owner = "Matroska-Org";
9 repo = "libebml";
10 rev = "release-${version}";
11 sha256 = "0fl8d35ywj9id93yp78qlxy7j81kjri957agq40r420kmwac3dzs";
12 };
13
14 nativeBuildInputs = [ cmake pkgconfig ];
15
16 cmakeFlags = [
17 "-DBUILD_SHARED_LIBS=YES"
18 ];
19
20 meta = with stdenv.lib; {
21 description = "Extensible Binary Meta Language library";
22 homepage = https://dl.matroska.org/downloads/libebml/;
23 license = licenses.lgpl21;
24 maintainers = with maintainers; [ spwhitt ];
25 platforms = platforms.unix;
26 };
27}