2011-02-12 20:18:46 +00:00
|
|
|
{ stdenv, fetchurl, libebml }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-05 21:43:50 +00:00
|
|
|
name = "libmatroska-1.4.1";
|
2011-02-12 20:18:46 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dl.matroska.org/downloads/libmatroska/${name}.tar.bz2";
|
2013-11-05 21:43:50 +00:00
|
|
|
sha256 = "1dzglkl0hpimld1kahkrrp857hw5pg1r7xxbpnx7jmlj7s3j2vq8";
|
2011-02-12 20:18:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = "cd make/linux";
|
2015-03-05 20:46:13 +00:00
|
|
|
makeFlags = "prefix=$(out) LIBEBML_INCLUDE_DIR=${libebml}/include LIBEBML_LIB_DIR=${libebml}/lib"
|
|
|
|
+ stdenv.lib.optionalString stdenv.isDarwin " CXX=clang++";
|
2011-02-12 20:18:46 +00:00
|
|
|
propagatedBuildInputs = [ libebml ];
|
|
|
|
|
2015-03-05 20:46:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to parse Matroska files";
|
|
|
|
homepage = http://matroska.org/;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = [ maintainers.spwhitt ];
|
|
|
|
platforms = platforms.unix;
|
2011-02-12 20:18:46 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|