@@ -0,0 +1,57 @@
5+stdenv.mkDerivation rec {
9+ src = fetchFromGitHub {
13+ sha256 = "sha256-XRGhukYite1GtPkO9clmkwvvU62OnYphO8V1Rrr7yMg=";
16+ makeFlags = [ "PREFIX=${placeholder "out"}"];
18+ meta = with stdenv.lib; {
19+ homepage = "https://cc65.github.io/";
20+ description = "C compiler for processors of 6502 family";
22+ cc65 is a complete cross development package for 65(C)02 systems,
23+ including a powerful macro assembler, a C compiler, linker, librarian and
26+ cc65 has C and runtime library support for many of the old 6502 machines,
27+ including the following Commodore machines:
30+ - C16/C116 and Plus/4
35+ - newer PET machines (not 2001).
36+ - the Apple ][+ and successors.
37+ - the Atari 8-bit machines.
38+ - the Atari 2600 console.
39+ - the Atari 5200 console.
40+ - GEOS for the C64, C128 and Apple //e.
41+ - the Bit Corporation Gamate console.
42+ - the NEC PC-Engine (aka TurboGrafx-16) console.
43+ - the Nintendo Entertainment System (NES) console.
44+ - the Watara Supervision console.
45+ - the VTech Creativision console.
47+ - the Oric Telestrat.
49+ - the Ohio Scientific Challenger 1P.
51+ The libraries are fairly portable, so creating a version for other 6502s
52+ shouldn't be too much work.
54+ license = licenses.zlib;
55+ maintainers = with maintainers; [ AndersonTorres ];