From ce8cd7cbe4a7b4d8de0ff08599a3d42c6c3e1ca2 Mon Sep 17 00:00:00 2001 From: Yuka Date: Sun, 17 Oct 2021 21:00:43 +0200 Subject: [PATCH] libmediainfo: add musl patch (#141966) --- pkgs/development/libraries/libmediainfo/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libmediainfo/default.nix b/pkgs/development/libraries/libmediainfo/default.nix index 7fa7ce9482a7..2a74c79afaf0 100644 --- a/pkgs/development/libraries/libmediainfo/default.nix +++ b/pkgs/development/libraries/libmediainfo/default.nix @@ -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" ];