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 03:21:04 +01:00
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2017-03-19 20:40:11 +00:00
|
|
|
|
2014-04-20 03:21:04 +01: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 03:21:04 +01: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 03:21:04 +01:00
|
|
|
};
|
|
|
|
|
2021-01-20 02:40:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config file zip wrapGAppsHook ];
|
|
|
|
buildInputs = [ wxGTK30-gtk3 gtk3 ]
|
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" ]
|
2019-11-20 09:17:54 +00:00
|
|
|
++ optionals 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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.codeblocks.org";
|
2014-04-20 03:21:04 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|