nixpkgs-suyu/pkgs/development/libraries/libmediainfo/default.nix
2017-11-08 10:36:21 +00:00

31 lines
895 B
Nix

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