2021-01-20 02:40:52 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, file, zip, wxGTK30-gtk3, gtk3
|
|
|
|
, contribPlugins ? false, hunspell, gamin, boost, wrapGAppsHook
|
2014-04-20 02:21:04 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2017-03-19 20:40:11 +00:00
|
|
|
|
2014-04-20 02:21:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-01-15 13:21:58 +00:00
|
|
|
name = "${pname}-${lib.optionalString contribPlugins "full-"}${version}";
|
2021-01-20 02:40:52 +00:00
|
|
|
version = "20.03";
|
2014-04-20 02:21:04 +00:00
|
|
|
pname = "codeblocks";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-20 02:40:52 +00:00
|
|
|
url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks-${version}.tar.xz";
|
|
|
|
sha256 = "1idaksw1vacmm83krxh5zlb12kad3dkz9ixh70glw1gaibib7vhm";
|
2014-04-20 02:21:04 +00:00
|
|
|
};
|
|
|
|
|
2021-01-20 02:40:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config file zip wrapGAppsHook ];
|
|
|
|
buildInputs = [ wxGTK30-gtk3 gtk3 ]
|
2014-05-13 18:07:13 +00:00
|
|
|
++ optionals contribPlugins [ hunspell gamin boost ];
|
2014-04-20 02:21:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
patches = [ ./writable-projects.patch ];
|
|
|
|
preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
|
2015-04-26 17:54:51 +00:00
|
|
|
postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig";
|
2014-04-20 02:21:04 +00:00
|
|
|
configureFlags = [ "--enable-pch=no" ]
|
2019-11-20 09:17:54 +00:00
|
|
|
++ optionals contribPlugins [ "--with-contrib-plugins" "--with-boost-libdir=${boost}/lib" ];
|
2015-09-04 00:31:22 +00:00
|
|
|
|
2017-03-19 20:40:11 +00:00
|
|
|
meta = {
|
2014-04-20 02:21:04 +00: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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.codeblocks.org";
|
2014-04-20 02:21:04 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|