2021-09-20 18:19:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config }:
|
2011-02-12 20:18:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-26 14:56:46 +00:00
|
|
|
pname = "libebml";
|
2021-03-14 20:33:45 +00:00
|
|
|
version = "1.4.2";
|
2011-02-12 20:18:41 +00:00
|
|
|
|
2018-07-14 09:44:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Matroska-Org";
|
|
|
|
repo = "libebml";
|
|
|
|
rev = "release-${version}";
|
2021-03-14 20:33:45 +00:00
|
|
|
sha256 = "1hiilnabar826lfxsaflqjhgsdli6hzzhjv8q2nmw36fvvlyks25";
|
2011-02-12 20:18:41 +00:00
|
|
|
};
|
|
|
|
|
2021-09-20 18:19:21 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream fix for gcc-11
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Matroska-Org/libebml/commit/f0bfd53647961e799a43d918c46cf3b6bff89806.patch";
|
|
|
|
sha256 = "1yd6rsds03kwx5jki4hihd2bpfh26g5l1pi82qzaqzarixdxwzvl";
|
|
|
|
excludes = [ "ChangeLog" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-07-14 09:44:18 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=YES"
|
2021-03-14 20:33:45 +00:00
|
|
|
"-DCMAKE_INSTALL_PREFIX="
|
2018-07-14 09:44:18 +00:00
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2011-02-12 20:18:41 +00:00
|
|
|
description = "Extensible Binary Meta Language library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://dl.matroska.org/downloads/libebml/";
|
2018-07-14 09:44:18 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ spwhitt ];
|
2015-02-28 15:35:52 +00:00
|
|
|
platforms = platforms.unix;
|
2011-02-12 20:18:41 +00:00
|
|
|
};
|
|
|
|
}
|