2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, zip, wxGTK, gtk2
|
2014-05-13 19:07:13 +01:00
|
|
|
, contribPlugins ? false, hunspell, gamin, boost
|
2014-04-20 03:21:04 +01:00
|
|
|
}:
|
|
|
|
|
2014-05-13 19:07:13 +01:00
|
|
|
with { inherit (stdenv.lib) optionalString optional optionals; };
|
|
|
|
|
2014-04-20 03:21:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}";
|
|
|
|
version = "13.12";
|
|
|
|
pname = "codeblocks";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}-1.tar.gz";
|
|
|
|
sha256 = "044njhps4cm1ijfdyr5f9wjyd0vblhrz9b4603ma52wcdq25093p";
|
|
|
|
};
|
|
|
|
|
2016-09-11 22:24:51 +01:00
|
|
|
buildInputs = [ automake autoconf libtool pkgconfig file zip wxGTK gtk2 ]
|
2014-05-13 19:07:13 +01:00
|
|
|
++ optionals contribPlugins [ hunspell gamin boost ];
|
2014-04-20 03:21:04 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
patches = [ ./writable-projects.patch ];
|
|
|
|
preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
|
2015-04-26 18:54:51 +01:00
|
|
|
postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig";
|
2014-04-20 03:21:04 +01:00
|
|
|
configureFlags = [ "--enable-pch=no" ]
|
2014-05-13 19:07:13 +01:00
|
|
|
++ optional contribPlugins "--with-contrib-plugins";
|
2014-04-20 03:21:04 +01:00
|
|
|
|
2015-09-04 01:31:22 +01:00
|
|
|
# Fix boost 1.59 compat
|
|
|
|
# Try removing in the next version
|
|
|
|
CPPFLAGS = "-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED";
|
|
|
|
|
2014-04-20 03:21:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = [ maintainers.linquize ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
description = "The open source, cross platform, free C, C++ and Fortran IDE";
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
Code::Blocks is a free C, C++ and Fortran IDE built to meet the most demanding needs of its users.
|
|
|
|
It is designed to be very extensible and fully configurable.
|
|
|
|
Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms.
|
|
|
|
'';
|
|
|
|
homepage = http://www.codeblocks.org;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|