15 pname = "c64-debugger";
16 version = "0.64.58.6";
19 url = "https://git.code.sf.net/p/c64-debugger/code";
20 rev = "f97772e3f5c8b4fa99e8ed212ed1c4cb1e2389f1";
21 sha256 = "sha256-3SR73AHQlYSEYpJLtQ/aJ1UITZGq7aA9tQKxBsn/yuc=";
39 # Disable default definition of RUN_COMMODORE64
40 sed -i 's|^#define RUN_COMMODORE64|//#define RUN_COMMODORE64|' MTEngine/Games/c64/C64D_Version.h
48 CFLAGS="-w -O2 -fcommon" \
49 CXXFLAGS="-w -O2 --std=c++11" \
50 DEFINES="-DRUN_COMMODORE64" \
52 mv MTEngine/c64debugger c64debugger
53 make -C MTEngine clean
57 CFLAGS="-w -O2 -fcommon" \
58 CXXFLAGS="-w -O2 --std=c++11" \
59 DEFINES="-DRUN_ATARI" \
61 mv MTEngine/c64debugger 65xedebugger
62 make -C MTEngine clean
66 CFLAGS="-w -O2 -fcommon" \
67 CXXFLAGS="-w -O2 --std=c++11" \
70 mv MTEngine/c64debugger nesdebugger
79 install -d "$out/share/doc"
80 install -m 755 c64debugger 65xedebugger nesdebugger "$out/bin"
81 install -m 644 MTEngine/Assets/*.txt "$out/share/doc"
82 install -m 644 MTEngine/Assets/*.pdf "$out/share/doc"
88 homepage = "https://sourceforge.net/projects/c64-debugger";
89 description = "Commodore 64, Atari XL/XE and NES code and memory debugger that works in real time";
90 license = with licenses; [
91 gpl3Only # c64-debugger
93 # emulators included in c64-debugger
94 gpl2Plus # VICE, atari800
97 mainProgram = "c64debugger";
98 maintainers = [ maintainers.detegr ];
99 platforms = platforms.linux;