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