<commit_before>{ fetchurl, stdenv, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts,
boost, zlib,
python, swig, gfortran, soqt, autoconf, automake, libtool }:

throw "It does not build still"

stdenv.mkDerivation rec {
  name = "freecad-${version}";
  version = "0.11.3729";

  src = fetchurl {
/*
    url = "mirror://sourceforge/free-cad/freecad-${version}.tar.gz";
    sha256 = "0q9jhnhkjsq9iy4kqi4xh2ljack4b2jj4pjm4dylv4z2d9gg5p4l";
*/
    url = "mirror://sourceforge/free-cad/freecad-${version}.dfsg.tar.gz";
    sha256 = "0sjcbadzzgdjr5bk51nr3nq0siyvfdq0913dqlhv9xr42vha3j8r";
  };

  buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
    zlib python swig gfortran soqt /*autoconf automake libtool*/ ];

/*
  # Using autotools
  patchPhase = ''
    sed -i -e 's/boost_\([a-z_]\+\)-mt/boost_\1/' \
      configure
  '';

  configureFlags = [ "--with-eigen2-include=${eigen}/include/eigen2"
    "--with-boost-include=${boost}/include"
    "--with-boost-lib=${boost}/lib"
    "--with-qt4-dir=${qt4}"
  ];
*/

  # Using cmake

  patchPhase = ''
    sed -i -e '/Idf/d' -e '/Start/d' src/Mod/CMakeLists.txt
  '';

  cmakeFlags = [ "-Wno-dev" ];

}<commit_msg>Making freecad build (from svn version). It does not install still, though.<commit_after>{ fetchsvn, stdenv, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts,
boost, zlib,
python, swig, gfortran, soqt, libf2c }:

# It builds but fails to install

stdenv.mkDerivation rec {
  name = "freecad-${version}";
  version = "svn-${src.rev}";

  src = fetchsvn {
    url = https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk;
    rev = "4184";
    sha256 = "26bd8407ce38f070b81ef39145aed093eed3c200d165a605b8169162d66568ce";
  };

  buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
    zlib python swig gfortran soqt libf2c ];

  enableParallelBuilding = true;

  # They are used to boost 1.42, and we have newer boost that require
  # this for freecad to build
  NIX_CFLAGS_COMPILE = "-DBOOST_FILESYSTEM_VERSION=2";

  meta = {
    homepage = http://free-cad.sourceforge.net/;
    license = [ "GPLv2+" "LGPLv2+" ];
    description = "General purpose Open Source 3D CAD/MCAD/CAx/CAE/PLM modeler";
  };
}
{'fraction_non_alphanumeric': 0.14696629213483145, 'fraction_numerical': 0.051685393258426963, 'mean_word_length': 3.580246913580247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4546699', 'n_tokens_mistral': 976, 'n_tokens_neox': 902, 'n_words': 186}