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 {
|
2021-04-03 19:54:17 +01:00
|
|
|
version = "21.03";
|
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";
|
2021-04-03 19:54:17 +01:00
|
|
|
sha256 = "1jm4mk539wf3crgpcddgwdixshwdzm37mkb5441lifhcz2mykdsn";
|
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
|
|
|
};
|
|
|
|
}
|