nixpkgs/pkgs/by-name/li/libmediainfo/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.1 KiB
Nix
Raw Normal View History

2022-04-29 09:57:05 +00:00
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }:
2015-01-12 19:13:37 +00:00
stdenv.mkDerivation rec {
pname = "libmediainfo";
version = "24.03";
2023-04-28 12:20:51 +00:00
src = fetchurl {
url = "https://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz";
hash = "sha256-zCu0TkB8iQq1ZpNMVnY5GFBatYwUE0tT8NHanuokLI0=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
2022-04-29 09:57:05 +00:00
buildInputs = [ zlib ];
propagatedBuildInputs = [ libzen ];
2021-10-17 19:00:43 +00:00
2022-09-27 05:23:16 +00:00
sourceRoot = "MediaInfoLib/Project/GNU/Library";
postPatch = lib.optionalString (stdenv.cc.targetPrefix != "") ''
substituteInPlace configure.ac \
--replace "pkg-config " "${stdenv.cc.targetPrefix}pkg-config "
'';
configureFlags = [ "--enable-shared" ];
2017-11-08 10:33:04 +00:00
enableParallelBuilding = true;
postInstall = ''
install -vD -m 644 libmediainfo.pc "$out/lib/pkgconfig/libmediainfo.pc"
'';
meta = with lib; {
description = "Shared library for mediainfo";
2020-04-06 00:36:54 +00:00
homepage = "https://mediaarea.net/";
2023-07-09 00:07:00 +00:00
changelog = "https://mediaarea.net/MediaInfo/ChangeLog";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = [ maintainers.devhell ];
};
}