libmediainfo: add musl patch (#141966)

This commit is contained in:
Yuka 2021-10-17 21:00:43 +02:00 committed by GitHub
parent e0e23dfa0d
commit ce8cd7cbe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }:
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib, fetchpatch }:
stdenv.mkDerivation rec {
version = "21.09";
@ -11,7 +11,15 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ libzen zlib ];
sourceRoot = "./MediaInfoLib/Project/GNU/Library/";
patches = [
# fixes pkgsMusl.libmediainfo build
(fetchpatch {
url = "https://git.alpinelinux.org/aports/plain/community/libmediainfo/fix-include-signal.patch?id=b8d666a3d33575c184308e1176f4de9e519af577";
sha256 = "sha256-b3HoIwy/hKSh8jUakwVJpnPmYw5KUwZXgLW7IPMY4/c=";
})
];
postPatch = "cd Project/GNU/Library";
configureFlags = [ "--enable-shared" ];