2023-04-05 03:50:54 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, alsa-lib, libxmp, AudioUnit, CoreAudio }:
|
2014-06-10 04:03:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 10:34:30 +00:00
|
|
|
pname = "xmp";
|
|
|
|
version = "4.1.0";
|
2014-06-10 04:03:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 10:34:30 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}/${pname}-${version}.tar.gz";
|
2018-01-28 14:21:53 +00:00
|
|
|
sha256 = "17i8fc7x7yn3z1x963xp9iv108gxfakxmdgmpv3mlm438w3n3g8x";
|
2014-06-10 04:03:13 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-04-05 03:50:54 +00:00
|
|
|
buildInputs = [ libxmp ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsa-lib ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio ];
|
2023-04-13 07:56:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extended module player";
|
|
|
|
homepage = "https://xmp.sourceforge.net/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2014-06-10 04:03:13 +00:00
|
|
|
}
|