Merge pull request #106430 from avdv/fix-libmodplug-darwin

libmodplug: Fix build on darwin
This commit is contained in:
Sandro 2020-12-10 01:13:53 +01:00 committed by GitHub
commit 65778375c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, file }:
let
version = "0.8.9.0";
@ -6,6 +6,12 @@ in stdenv.mkDerivation rec {
pname = "libmodplug";
inherit version;
preConfigure = ''
substituteInPlace configure \
--replace ' -mmacosx-version-min=10.5' "" \
--replace /usr/bin/file ${file}/bin/file
'';
meta = with stdenv.lib; {
description = "MOD playing library";
homepage = "http://modplug-xmms.sourceforge.net/";