2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, fetchpatch
|
|
|
|
, perl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gecode";
|
|
|
|
version = "3.7.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.gecode.org/download/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0k45jas6p3cyldgyir1314ja3174sayn2h2ly3z9b4dl3368pk77";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
patches = [
|
|
|
|
(import ./fix-const-weights-clang-patch.nix fetchpatch)
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preConfigure = "patchShebangs configure";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://www.gecode.org";
|
|
|
|
description = "Toolkit for developing constraint-based systems";
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.manveru ];
|
|
|
|
};
|
|
|
|
}
|