2022-04-05 21:47:27 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchzip
|
|
|
|
, SDL
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "asap";
|
2023-10-09 13:18:37 +00:00
|
|
|
version = "6.0.0";
|
2022-04-05 21:47:27 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/project/asap/asap/${version}/asap-${version}.tar.gz";
|
2023-10-09 13:18:37 +00:00
|
|
|
sha256 = "sha256-j7vznFI/Yg1yuRvYDmRSyHDfDN7iFV+b6MK2jdnaz6Q=";
|
2022-04-05 21:47:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
buildFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
# Only targets that don't need cito transpiler
|
|
|
|
"asapconv"
|
|
|
|
"asap-sdl"
|
|
|
|
"lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"prefix=${placeholder "dev"}"
|
|
|
|
"bindir=${placeholder "out"}/bin"
|
|
|
|
"install-asapconv"
|
|
|
|
"install-sdl"
|
|
|
|
"install-lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://asap.sourceforge.net/";
|
2022-04-05 21:47:27 +00:00
|
|
|
mainProgram = "asap-sdl";
|
|
|
|
description = "Another Slight Atari Player";
|
|
|
|
longDescription = ''
|
|
|
|
ASAP (Another Slight Atari Player) plays and converts 8-bit Atari POKEY
|
|
|
|
music (*.sap, *.cmc, *.mpt, *.rmt, *.tmc, ...) on modern computers and
|
|
|
|
mobile devices.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|