2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }:
|
2014-12-17 00:24:18 +00:00
|
|
|
|
2015-01-12 19:13:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-10-18 15:58:56 +01:00
|
|
|
version = "20.09";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libmediainfo";
|
2014-12-17 00:24:18 +00:00
|
|
|
src = fetchurl {
|
2017-10-11 09:13:00 +01:00
|
|
|
url = "https://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz";
|
2020-10-18 15:58:56 +01:00
|
|
|
sha256 = "15ni9pnch6688m72swwax109a7mg4a08yx75qknrx7qa6dbyhz6h";
|
2014-12-17 00:24:18 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2016-03-12 14:13:39 +00:00
|
|
|
buildInputs = [ libzen zlib ];
|
2014-12-17 00:24:18 +00:00
|
|
|
|
|
|
|
sourceRoot = "./MediaInfoLib/Project/GNU/Library/";
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-shared" ];
|
|
|
|
|
2017-11-08 10:33:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-12-17 00:24:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -vD -m 644 libmediainfo.pc "$out/lib/pkgconfig/libmediainfo.pc"
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2014-12-17 00:24:18 +00:00
|
|
|
description = "Shared library for mediainfo";
|
2020-04-06 01:36:54 +01:00
|
|
|
homepage = "https://mediaarea.net/";
|
2016-03-12 14:13:39 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.devhell ];
|
2014-12-17 00:24:18 +00:00
|
|
|
};
|
|
|
|
}
|