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