2018-07-14 11:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, libebml }:
|
2011-02-12 21:18:46 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-07-14 11:44:44 +02:00
|
|
|
name = "libmatroska-${version}";
|
|
|
|
version = "1.4.9";
|
2011-02-12 21:18:46 +01:00
|
|
|
|
2018-07-14 11:44:44 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Matroska-Org";
|
|
|
|
repo = "libmatroska";
|
|
|
|
rev = "release-${version}";
|
|
|
|
sha256 = "1hfrcpvmyqnvdkw8rz1z20zw7fpnjyl5h0g9ky7k6y1a44b1fz86";
|
2011-02-12 21:18:46 +01:00
|
|
|
};
|
|
|
|
|
2018-07-14 11:44:44 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2016-03-07 02:50:51 +01:00
|
|
|
|
|
|
|
buildInputs = [ libebml ];
|
2011-02-12 21:18:46 +01:00
|
|
|
|
2018-07-14 11:44:44 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=YES"
|
|
|
|
];
|
|
|
|
|
2015-03-05 21:46:13 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to parse Matroska files";
|
2017-08-02 23:50:51 +02:00
|
|
|
homepage = https://matroska.org/;
|
2015-03-05 21:46:13 +01:00
|
|
|
license = licenses.lgpl21;
|
2018-07-14 11:44:44 +02:00
|
|
|
maintainers = with maintainers; [ spwhitt ];
|
2015-03-05 21:46:13 +01:00
|
|
|
platforms = platforms.unix;
|
2011-02-12 21:18:46 +01:00
|
|
|
};
|
|
|
|
}
|