nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 32 lines 903 B view raw
1{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }: 2 3stdenv.mkDerivation rec { 4 version = "22.03"; 5 pname = "libmediainfo"; 6 src = fetchurl { 7 url = "https://mediaarea.net/download/source/libmediainfo/${version}/libmediainfo_${version}.tar.xz"; 8 sha256 = "sha256-/FC6u2KOnPumVSiNrgbVw0Kw1+aUGjLWT7uxEySMgLk="; 9 }; 10 11 nativeBuildInputs = [ autoreconfHook pkg-config ]; 12 buildInputs = [ zlib ]; 13 propagatedBuildInputs = [ libzen ]; 14 15 postPatch = "cd Project/GNU/Library"; 16 17 configureFlags = [ "--enable-shared" ]; 18 19 enableParallelBuilding = true; 20 21 postInstall = '' 22 install -vD -m 644 libmediainfo.pc "$out/lib/pkgconfig/libmediainfo.pc" 23 ''; 24 25 meta = with lib; { 26 description = "Shared library for mediainfo"; 27 homepage = "https://mediaarea.net/"; 28 license = licenses.bsd2; 29 platforms = platforms.unix; 30 maintainers = [ maintainers.devhell ]; 31 }; 32}