Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libmediainfo: add musl patch (#141966)

authored by

Yuka and committed by
GitHub
ce8cd7cb e0e23dfa

+10 -2
+10 -2
pkgs/development/libraries/libmediainfo/default.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }: 1 + { lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "21.09"; ··· 11 11 nativeBuildInputs = [ autoreconfHook pkg-config ]; 12 12 buildInputs = [ libzen zlib ]; 13 13 14 - sourceRoot = "./MediaInfoLib/Project/GNU/Library/"; 14 + patches = [ 15 + # fixes pkgsMusl.libmediainfo build 16 + (fetchpatch { 17 + url = "https://git.alpinelinux.org/aports/plain/community/libmediainfo/fix-include-signal.patch?id=b8d666a3d33575c184308e1176f4de9e519af577"; 18 + sha256 = "sha256-b3HoIwy/hKSh8jUakwVJpnPmYw5KUwZXgLW7IPMY4/c="; 19 + }) 20 + ]; 21 + 22 + postPatch = "cd Project/GNU/Library"; 15 23 16 24 configureFlags = [ "--enable-shared" ]; 17 25