nixpkgs/pkgs/development/libraries/libmodplug/default.nix

28 lines
745 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, file }:
2014-05-15 10:17:06 +00:00
let
version = "0.8.9.0";
2014-05-15 10:17:06 +00:00
in stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "libmodplug";
inherit version;
preConfigure = ''
substituteInPlace configure \
--replace ' -mmacosx-version-min=10.5' "" \
--replace /usr/bin/file ${file}/bin/file
'';
meta = with lib; {
2014-05-15 10:17:06 +00:00
description = "MOD playing library";
homepage = "http://modplug-xmms.sourceforge.net/";
license = licenses.publicDomain;
2015-04-08 20:12:24 +00:00
platforms = platforms.unix;
2014-05-15 10:17:06 +00:00
maintainers = with maintainers; [ raskin ];
};
2014-05-15 10:17:06 +00:00
src = fetchurl {
2019-08-13 21:52:01 +00:00
url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz";
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
2014-05-15 10:17:06 +00:00
};
}