Merge pull request #307821 from NickCao/musicbranz

perl538Packages.MusicBrainzDiscID: fix cross compilation, drop outdat…
This commit is contained in:
Nick Cao 2024-04-30 08:54:30 -04:00 committed by GitHub
commit 9ec87a1e56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18175,9 +18175,11 @@ with self; {
url = "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-0.06.tar.gz";
hash = "sha256-ugtu0JiX/1Y7pZhy7pNxW+83FXUVsZt8bW8obmVI7Ks=";
};
perlPreHook = lib.optionalString stdenv.isi686 "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
# Makefile.PL in this package uses which to find pkg-config -- make it use path instead
patchPhase = ''sed -ie 's/`which pkg-config`/"pkg-config"/' Makefile.PL'';
# Makefile.PL in this package uses which to find pkg-config -- make it use envvar instead
postPatch = ''
substituteInPlace Makefile.PL \
--replace-fail '`which pkg-config`' "'$PKG_CONFIG'"
'';
doCheck = false; # The main test performs network access
nativeBuildInputs = [ pkgs.pkg-config ];
propagatedBuildInputs = [ pkgs.libdiscid ];