1{ stdenv
2, lib
3, fetchzip
4, SDL
5}:
6
7stdenv.mkDerivation rec {
8 pname = "asap";
9 version = "5.3.0";
10
11 src = fetchzip {
12 url = "mirror://sourceforge/project/asap/asap/${version}/asap-${version}.tar.gz";
13 sha256 = "sha256-ioEshlPE8eUcLxNkIl0lxnczMNAYRcJN8KGN6OansjY=";
14 };
15
16 outputs = [ "out" "dev" ];
17
18 buildInputs = [
19 SDL
20 ];
21
22 enableParallelBuilding = true;
23
24 buildFlags = [
25 "CC=${stdenv.cc.targetPrefix}cc"
26 # Only targets that don't need cito transpiler
27 "asapconv"
28 "asap-sdl"
29 "lib"
30 ];
31
32 installFlags = [
33 "prefix=${placeholder "dev"}"
34 "bindir=${placeholder "out"}/bin"
35 "install-asapconv"
36 "install-sdl"
37 "install-lib"
38 ];
39
40 meta = with lib; {
41 homepage = "https://asap.sourceforge.net/";
42 mainProgram = "asap-sdl";
43 description = "Another Slight Atari Player";
44 longDescription = ''
45 ASAP (Another Slight Atari Player) plays and converts 8-bit Atari POKEY
46 music (*.sap, *.cmc, *.mpt, *.rmt, *.tmc, ...) on modern computers and
47 mobile devices.
48 '';
49 maintainers = with maintainers; [ OPNA2608 ];
50 license = licenses.gpl2Plus;
51 platforms = platforms.all;
52 };
53}