at 16.09-beta 43 lines 1.8 kB view raw
1{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, zip, wxGTK, gtk 2, contribPlugins ? false, hunspell, gamin, boost 3}: 4 5with { inherit (stdenv.lib) optionalString optional optionals; }; 6 7stdenv.mkDerivation rec { 8 name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}"; 9 version = "13.12"; 10 pname = "codeblocks"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}-1.tar.gz"; 14 sha256 = "044njhps4cm1ijfdyr5f9wjyd0vblhrz9b4603ma52wcdq25093p"; 15 }; 16 17 buildInputs = [ automake autoconf libtool pkgconfig file zip wxGTK gtk ] 18 ++ optionals contribPlugins [ hunspell gamin boost ]; 19 enableParallelBuilding = true; 20 patches = [ ./writable-projects.patch ]; 21 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file"; 22 postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig"; 23 configureFlags = [ "--enable-pch=no" ] 24 ++ optional contribPlugins "--with-contrib-plugins"; 25 26 # Fix boost 1.59 compat 27 # Try removing in the next version 28 CPPFLAGS = "-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED"; 29 30 meta = with stdenv.lib; { 31 maintainers = [ maintainers.linquize ]; 32 platforms = platforms.all; 33 description = "The open source, cross platform, free C, C++ and Fortran IDE"; 34 longDescription = 35 '' 36 Code::Blocks is a free C, C++ and Fortran IDE built to meet the most demanding needs of its users. 37 It is designed to be very extensible and fully configurable. 38 Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms. 39 ''; 40 homepage = http://www.codeblocks.org; 41 license = licenses.gpl3; 42 }; 43}