2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, file }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libmodplug";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "0.8.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace configure \
|
|
|
|
--replace ' -mmacosx-version-min=10.5' "" \
|
|
|
|
--replace /usr/bin/file ${file}/bin/file
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "MOD playing library";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://modplug-xmms.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
};
|
|
|
|
}
|