nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 pname = "libebml";
5 version = "1.4.0";
6
7 src = fetchFromGitHub {
8 owner = "Matroska-Org";
9 repo = "libebml";
10 rev = "release-${version}";
11 sha256 = "052v4mjynndj9xgfl4lmlsnx9ai0pah0kjyr5fm34l7gj8vhc5s7";
12 };
13
14 nativeBuildInputs = [ cmake pkgconfig ];
15
16 cmakeFlags = [
17 "-DBUILD_SHARED_LIBS=YES"
18 ];
19
20 meta = with stdenv.lib; {
21 description = "Extensible Binary Meta Language library";
22 homepage = "https://dl.matroska.org/downloads/libebml/";
23 license = licenses.lgpl21;
24 maintainers = with maintainers; [ spwhitt ];
25 platforms = platforms.unix;
26 };
27}