depot/third_party/nixpkgs/pkgs/development/libraries/libmodplug/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

27 lines
750 B
Nix

{ lib, stdenv, fetchurl, file }:
stdenv.mkDerivation rec {
pname = "libmodplug";
version = "0.8.9.0";
src = fetchurl {
url = "mirror://sourceforge/project/modplug-xmms/libmodplug/${version}/${pname}-${version}.tar.gz";
sha256 = "1pnri98a603xk47smnxr551svbmgbzcw018mq1k6srbrq6kaaz25";
};
outputs = [ "out" "dev" ];
preConfigure = ''
substituteInPlace configure \
--replace ' -mmacosx-version-min=10.5' "" \
--replace /usr/bin/file ${file}/bin/file
'';
meta = with lib; {
description = "MOD playing library";
homepage = "https://modplug-xmms.sourceforge.net/";
license = licenses.publicDomain;
platforms = platforms.unix;
maintainers = with maintainers; [ raskin ];
};
}