nixpkgs/pkgs/development/libraries/libmediainfo/default.nix
devhell 33f345eed0 {lib}mediainfo{-gui}: 0.7.83 -> 0.7.84
Built and tested locally.

From the changelog:
```
Version 0.7.84, 2016-03-31
x #I122, MPEG-4/MOV: Crash if mdhd timescale is 0
x MPEG-4/MOV: Infinite loop if malformed stsc / stsz (detected by
  fuzzing)
x MPEG-TS: some DVB Subtitles were not detected
x HLS: better handling of media playlists having EXT-X-BYTERANGE
```
2016-03-31 23:36:50 +01:00

30 lines
860 B
Nix

{ stdenv, fetchurl, autoreconfHook, pkgconfig, libzen, zlib }:
stdenv.mkDerivation rec {
version = "0.7.84";
name = "libmediainfo-${version}";
src = fetchurl {
url = "http://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz";
sha256 = "0k657ynfxcw6lvakc8plz0pzfixlqbsiih2idimk9k1dd4xzhq3d";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libzen zlib ];
sourceRoot = "./MediaInfoLib/Project/GNU/Library/";
configureFlags = [ "--enable-shared" ];
postInstall = ''
install -vD -m 644 libmediainfo.pc "$out/lib/pkgconfig/libmediainfo.pc"
'';
meta = with stdenv.lib; {
description = "Shared library for mediainfo";
homepage = http://mediaarea.net/;
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = [ maintainers.devhell ];
};
}