Skip to content

Commit

Permalink
sdcc: 3.5.0 -> 3.6.0
Browse files Browse the repository at this point in the history
* requires texinfo
* --std=c99 unneeded, fixed upstream
* can build with nixpkgs default boost (v1.62), so let's do that
  • Loading branch information
bjornfor committed Jun 11, 2017
1 parent 4a90156 commit c95f3a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions pkgs/development/compilers/sdcc/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
{ stdenv, fetchurl, bison, flex, boost, gputils ? null }:
{ stdenv, fetchurl, bison, flex, boost, texinfo, gputils ? null }:

stdenv.mkDerivation rec {
version = "3.5.0";
version = "3.6.0";
name = "sdcc-${version}";

src = fetchurl {
url = "mirror://sourceforge/sdcc/sdcc-src-${version}.tar.bz2";
sha256 = "1aazz0yynr694q0rich7r03qls0zvsjc00il14pb4i22c78phagq";
sha256 = "0x53gh5yrrfjvlnkk29mjn8hq4v52alrsf7c8nsyzzq13sqwwpg8";
};

# TODO: remove this comment when gputils != null is tested
buildInputs = [ bison flex boost gputils ];
buildInputs = [ bison flex boost texinfo gputils ];

configureFlags = ''
${if gputils == null then "--disable-pic14-port --disable-pic16-port" else ""}
'';

NIX_CFLAGS_COMPILE = "--std=c99"; # http://sourceforge.net/p/sdcc/code/9106/

meta = with stdenv.lib; {
description = "Small Device C Compiler";
longDescription = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5808,7 +5808,7 @@ with pkgs;

scalafmt = callPackage ../development/tools/scalafmt { };

sdcc = callPackage ../development/compilers/sdcc { boost = boost159; };
sdcc = callPackage ../development/compilers/sdcc { };

serpent = callPackage ../development/compilers/serpent { };

Expand Down

0 comments on commit c95f3a3

Please sign in to comment.