git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #103942 from AndersonTorres/wip-cc65
dced592Anderson Torres
pkgs/development/compilers/cc65/default.nixnew file+57
@@ -0,0 +1,57 @@
1+{ stdenv
2+, fetchFromGitHub
3+}:
4+
5+stdenv.mkDerivation rec {
6+ pname = "cc65";
7+ version = "2.18";
8+
9+ src = fetchFromGitHub {
10+ owner = "cc65";
11+ repo = pname;
12+ rev = "V${version}";
13+ sha256 = "sha256-XRGhukYite1GtPkO9clmkwvvU62OnYphO8V1Rrr7yMg=";
14+ };
15+
16+ makeFlags = [ "PREFIX=${placeholder "out"}"];
17+
18+ meta = with stdenv.lib; {
19+ homepage = "https://cc65.github.io/";
20+ description = "C compiler for processors of 6502 family";
21+ longDescription = ''
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
24+ several other tools.
25+
26+ cc65 has C and runtime library support for many of the old 6502 machines,
27+ including the following Commodore machines:
28+
29+ - VIC20
30+ - C16/C116 and Plus/4
31+ - C64
32+ - C128
33+ - CBM 510 (aka P500)
34+ - the 600/700 family
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.
46+ - the Oric Atmos.
47+ - the Oric Telestrat.
48+ - the Lynx console.
49+ - the Ohio Scientific Challenger 1P.
50+
51+ The libraries are fairly portable, so creating a version for other 6502s
52+ shouldn't be too much work.
53+ '';
54+ license = licenses.zlib;
55+ maintainers = with maintainers; [ AndersonTorres ];
56+ };
57+}
pkgs/top-level/all-packages.nix+2
@@ -8709,6 +8709,8 @@ in
8709 chicken
8709 chicken
8710 egg2nix;
8710 egg2nix;
8711
8711
8712+ cc65 = callPackage ../development/compilers/cc65 { };
8713+
8712 ccl = callPackage ../development/compilers/ccl {
8714 ccl = callPackage ../development/compilers/ccl {
8713 inherit (buildPackages.darwin) bootstrap_cmds;
8715 inherit (buildPackages.darwin) bootstrap_cmds;
8714 };
8716 };