nixpkgs-suyu/pkgs/development/libraries/libmodplug/default.nix
Claudio Bley 144e9c79e5 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
```
2020-12-09 10:13:00 +01:00

27 lines
747 B
Nix

{ stdenv, fetchurl, file }:
let
version = "0.8.9.0";
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/";
license = licenses.publicDomain;
platforms = platforms.unix;
maintainers = with maintainers; [ raskin ];
};
src = fetchurl {
url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz";
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
};
}