mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
33f345eed0
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 ```
30 lines
860 B
Nix
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 ];
|
|
};
|
|
}
|