nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 gccStdenv,
4 fetchFromGitHub,
5}:
6
7gccStdenv.mkDerivation rec {
8 pname = "cc65";
9 version = "2.19";
10
11 src = fetchFromGitHub {
12 owner = "cc65";
13 repo = "cc65";
14 rev = "V${version}";
15 sha256 = "01a15yvs455qp20hri2pbg2wqvcip0d50kb7dibi9427hqk9cnj4";
16 };
17
18 makeFlags = [ "PREFIX=${placeholder "out"}" ];
19
20 enableParallelBuilding = true;
21
22 meta = {
23 homepage = "https://cc65.github.io/";
24 description = "C compiler for processors of 6502 family";
25 longDescription = ''
26 cc65 is a complete cross development package for 65(C)02 systems,
27 including a powerful macro assembler, a C compiler, linker, librarian and
28 several other tools.
29
30 cc65 has C and runtime library support for many of the old 6502 machines,
31 including the following Commodore machines:
32
33 - VIC20
34 - C16/C116 and Plus/4
35 - C64
36 - C128
37 - CBM 510 (aka P500)
38 - the 600/700 family
39 - newer PET machines (not 2001).
40 - the Apple ][+ and successors.
41 - the Atari 8-bit machines.
42 - the Atari 2600 console.
43 - the Atari 5200 console.
44 - GEOS for the C64, C128 and Apple //e.
45 - the Bit Corporation Gamate console.
46 - the NEC PC-Engine (aka TurboGrafx-16) console.
47 - the Nintendo Entertainment System (NES) console.
48 - the Watara Supervision console.
49 - the VTech Creativision console.
50 - the Oric Atmos.
51 - the Oric Telestrat.
52 - the Lynx console.
53 - the Ohio Scientific Challenger 1P.
54
55 The libraries are fairly portable, so creating a version for other 6502s
56 shouldn't be too much work.
57 '';
58 license = lib.licenses.zlib;
59 maintainers = [ ];
60 platforms = lib.platforms.unix;
61 };
62}