2017-03-19 20:40:11 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, 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
|
|
|
}:
|
|
|
|
|
2017-03-19 20:40:11 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-04-20 03:21:04 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}";
|
2018-03-09 16:12:10 +00:00
|
|
|
version = "17.12";
|
2014-04-20 03:21:04 +01:00
|
|
|
pname = "codeblocks";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-09 16:12:10 +00:00
|
|
|
url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}.tar.xz";
|
|
|
|
sha256 = "1q2pph7md1p10i83rir2l4gvy7ym2iw8w6sk5vl995knf851m20k";
|
2014-04-20 03:21:04 +01:00
|
|
|
};
|
|
|
|
|
2017-03-19 20:40:11 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig libtool file zip ];
|
|
|
|
buildInputs = [ 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" ]
|
2018-03-09 16:12:10 +00:00
|
|
|
++ optional contribPlugins [ "--with-contrib-plugins" "--with-boost-libdir=${boost}/lib" ];
|
2015-09-04 01:31:22 +01:00
|
|
|
|
2017-03-19 20:40:11 +00:00
|
|
|
meta = {
|
2014-04-20 03:21:04 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|