diff options
author | Claudio Bley <cbley@exa-online.de> | 2020-12-09 10:13:00 +0100 |
---|---|---|
committer | Claudio Bley <cbley@exa-online.de> | 2020-12-09 10:13:00 +0100 |
commit | 144e9c79e5ff747a5815e0589138aae000084ba0 (patch) | |
tree | d365f45100c426ed69f16e5c5b4e158f33e77bbd /pkgs/development/libraries/libmodplug | |
parent | d183736d699bf65c1fbf5b3b7bbfac2f28d726cd (diff) | |
download | nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.tar nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.tar.gz nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.tar.bz2 nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.tar.lz nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.tar.xz nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.tar.zst nixpkgs-144e9c79e5ff747a5815e0589138aae000084ba0.zip |
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 ```
Diffstat (limited to 'pkgs/development/libraries/libmodplug')
-rw-r--r-- | pkgs/development/libraries/libmodplug/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libmodplug/default.nix b/pkgs/development/libraries/libmodplug/default.nix index 231f18377e4..2d38a5021e5 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/"; |