8 stdenv.mkDerivation rec {
13 url = "http://www.gecode.org/download/${pname}-${version}.tar.gz";
14 sha256 = "0k45jas6p3cyldgyir1314ja3174sayn2h2ly3z9b4dl3368pk77";
18 (import ./fix-const-weights-clang-patch.nix fetchpatch)
22 substituteInPlace gecode/flatzinc/lexer.yy.cpp \
23 --replace "register " ""
26 nativeBuildInputs = [ perl ];
28 preConfigure = "patchShebangs configure";
30 env.CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++14";
33 license = licenses.mit;
34 homepage = "https://www.gecode.org";
35 description = "Toolkit for developing constraint-based systems";
36 platforms = platforms.all;
37 maintainers = [ maintainers.manveru ];