2023-06-16 23:10:08 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
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";
|
2023-06-16 23:10:08 +00:00
|
|
|
version = "4.2.0";
|
2014-06-10 04:03:13 +00:00
|
|
|
|
2023-06-16 23:10:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libxmp";
|
|
|
|
repo = "xmp-cli";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
hash = "sha256-037k1rFjGR6XFtr08bzs4zVz+GyUGuuutuWFlNEuATA=";
|
2014-06-10 04:03:13 +00:00
|
|
|
};
|
|
|
|
|
2023-06-16 23:10:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
2023-04-05 03:50:54 +00:00
|
|
|
buildInputs =
|
|
|
|
[ libxmp ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.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;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "xmp";
|
2023-04-13 07:56:11 +00:00
|
|
|
};
|
2014-06-10 04:03:13 +00:00
|
|
|
}
|