1{ lib
2, stdenv
3, fetchurl
4, fetchpatch
5, perl
6}:
7
8stdenv.mkDerivation rec {
9 pname = "gecode";
10 version = "3.7.3";
11
12 src = fetchurl {
13 url = "http://www.gecode.org/download/${pname}-${version}.tar.gz";
14 sha256 = "0k45jas6p3cyldgyir1314ja3174sayn2h2ly3z9b4dl3368pk77";
15 };
16
17 patches = [
18 (import ./fix-const-weights-clang-patch.nix fetchpatch)
19 ];
20
21 nativeBuildInputs = [ perl ];
22
23 preConfigure = "patchShebangs configure";
24
25 meta = with lib; {
26 license = licenses.mit;
27 homepage = "https://www.gecode.org";
28 description = "Toolkit for developing constraint-based systems";
29 platforms = platforms.all;
30 maintainers = [ maintainers.manveru ];
31 };
32}