2017-02-07 20:55:45 +00:00
|
|
|
{ stdenv, fetchurl, bison, flex, boost, texinfo, gputils ? null }:
|
sdcc: new nixpkg (SDCC -> Small Device C Compiler)
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting the
Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
2013-03-10 20:23:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-07 20:55:45 +00:00
|
|
|
version = "3.6.0";
|
sdcc: new nixpkg (SDCC -> Small Device C Compiler)
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting the
Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
2013-03-10 20:23:56 +00:00
|
|
|
name = "sdcc-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/sdcc/sdcc-src-${version}.tar.bz2";
|
2017-02-07 20:55:45 +00:00
|
|
|
sha256 = "0x53gh5yrrfjvlnkk29mjn8hq4v52alrsf7c8nsyzzq13sqwwpg8";
|
sdcc: new nixpkg (SDCC -> Small Device C Compiler)
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting the
Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
2013-03-10 20:23:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: remove this comment when gputils != null is tested
|
2017-02-07 20:55:45 +00:00
|
|
|
buildInputs = [ bison flex boost texinfo gputils ];
|
sdcc: new nixpkg (SDCC -> Small Device C Compiler)
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting the
Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
2013-03-10 20:23:56 +00:00
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
${if gputils == null then "--disable-pic14-port --disable-pic16-port" else ""}
|
|
|
|
'';
|
|
|
|
|
2013-05-20 18:33:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
sdcc: new nixpkg (SDCC -> Small Device C Compiler)
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting the
Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
2013-03-10 20:23:56 +00:00
|
|
|
description = "Small Device C Compiler";
|
|
|
|
longDescription = ''
|
|
|
|
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
|
|
|
|
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.), Maxim
|
|
|
|
(formerly Dallas) DS80C390 variants, Freescale (formerly Motorola) HC08 based
|
|
|
|
(hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80, Rabbit 2000/3000,
|
|
|
|
Rabbit 3000A). Work is in progress on supporting the Microchip PIC16 and
|
|
|
|
PIC18 targets. It can be retargeted for other microprocessors.
|
|
|
|
'';
|
|
|
|
homepage = http://sdcc.sourceforge.net/;
|
2013-05-20 18:33:18 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
sdcc: new nixpkg (SDCC -> Small Device C Compiler)
SDCC is a retargettable, optimizing ANSI - C compiler suite that targets
the Intel MCS51 based microprocessors (8031, 8032, 8051, 8052, etc.),
Maxim (formerly Dallas) DS80C390 variants, Freescale (formerly Motorola)
HC08 based (hc08, s08) and Zilog Z80 based MCUs (z80, z180, gbz80,
Rabbit 2000/3000, Rabbit 3000A). Work is in progress on supporting the
Microchip PIC16 and PIC18 targets. It can be retargeted for other
microprocessors.
2013-03-10 20:23:56 +00:00
|
|
|
};
|
|
|
|
}
|