From 144e9c79e5ff747a5815e0589138aae000084ba0 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Wed, 9 Dec 2020 10:13:00 +0100 Subject: [PATCH] libmodplug: Fix build on darwin * removing the `-mmacosx-version-min` flag makes the build work again * also fix the path to the `file` command in the configure script to fix the warning ``` ./configure: line 7754: /usr/bin/file: No such file or directory ``` --- pkgs/development/libraries/libmodplug/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libmodplug/default.nix b/pkgs/development/libraries/libmodplug/default.nix index 231f18377e48..2d38a5021e51 100644 --- a/pkgs/development/libraries/libmodplug/default.nix +++ b/pkgs/development/libraries/libmodplug/default.nix @@ -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/";