summary refs log tree commit diff
path: root/pkgs/development/libraries/libmkv/default.nix
blob: 84e484fcc3df200588e2ed723655801d881873e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchgit, libtool, autoconf, automake }:

stdenv.mkDerivation rec {
  name = "libmkv-0.6.5.1p2";
  
  src = fetchgit {
    url = https://github.com/saintdev/libmkv.git;
    rev = "refs/tags/0.6.5.1";
    sha256 = "0pr9q7yprndl8d15ir7i7cznvmf1yqpvnsyivv763n6wryssq6dl";
  };

  nativeBuildInputs = [ libtool autoconf automake ];

  # TODO fix library version
  preConfigure = "sh bootstrap.sh";

  # From Handbrake
  patches = [
    ./A01-hbmv-pgs.patch
    ./A02-audio-out-sampling-freq.patch
    ./P00-mingw-large-file.patch
  ];

  meta = {
    homepage = https://github.com/saintdev/libmkv;
    license = stdenv.lib.licenses.gpl2;
    maintainers = [ stdenv.lib.maintainers.wmertens ];
  };
}