2022-10-19 10:46:17 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libebml }:
|
2011-02-12 20:18:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-26 15:02:20 +00:00
|
|
|
pname = "libmatroska";
|
2022-10-19 10:46:17 +00:00
|
|
|
version = "1.7.1";
|
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}";
|
2022-10-19 10:46:17 +00:00
|
|
|
sha256 = "sha256-hfu3Q1lIyMlWFWUM2Pu70Hie0rlQmua7Kq8kSIWnfHE=";
|
2011-02-12 20:18:46 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
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"
|
2021-03-14 20:36:29 +00:00
|
|
|
"-DCMAKE_INSTALL_PREFIX="
|
2018-07-14 09:44:44 +00:00
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-03-05 20:46:13 +00:00
|
|
|
description = "A library to parse Matroska files";
|
2020-04-01 01:11: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
|
|
|
};
|
|
|
|
}
|