Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config }: 2 3stdenv.mkDerivation rec { 4 pname = "libebml"; 5 version = "1.4.4"; 6 7 src = fetchFromGitHub { 8 owner = "Matroska-Org"; 9 repo = "libebml"; 10 rev = "release-${version}"; 11 sha256 = "sha256-36SfZUHJ2sIvrrHox583cQqfWWcrL2zW1IHzgDchC9g="; 12 }; 13 14 nativeBuildInputs = [ cmake pkg-config ]; 15 16 cmakeFlags = [ 17 "-DBUILD_SHARED_LIBS=YES" 18 "-DCMAKE_INSTALL_PREFIX=" 19 ]; 20 21 meta = with lib; { 22 description = "Extensible Binary Meta Language library"; 23 homepage = "https://dl.matroska.org/downloads/libebml/"; 24 license = licenses.lgpl21; 25 maintainers = with maintainers; [ ]; 26 platforms = platforms.unix; 27 }; 28}