about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libmatroska
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libmatroska')
-rw-r--r--nixpkgs/pkgs/development/libraries/libmatroska/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libmatroska/default.nix b/nixpkgs/pkgs/development/libraries/libmatroska/default.nix
new file mode 100644
index 000000000000..aee9176790e2
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libmatroska/default.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libebml }:
+
+stdenv.mkDerivation rec {
+  pname = "libmatroska";
+  version = "1.7.1";
+
+  src = fetchFromGitHub {
+    owner  = "Matroska-Org";
+    repo   = "libmatroska";
+    rev    = "release-${version}";
+    sha256 = "sha256-hfu3Q1lIyMlWFWUM2Pu70Hie0rlQmua7Kq8kSIWnfHE=";
+  };
+
+  nativeBuildInputs = [ cmake pkg-config ];
+
+  buildInputs = [ libebml ];
+
+  cmakeFlags = [
+    "-DBUILD_SHARED_LIBS=YES"
+    "-DCMAKE_INSTALL_PREFIX="
+  ];
+
+  meta = with lib; {
+    description = "A library to parse Matroska files";
+    homepage = "https://matroska.org/";
+    license = licenses.lgpl21;
+    maintainers = with maintainers; [ ];
+    platforms = platforms.unix;
+  };
+}