Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
865 B
Nix
41 lines
865 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
fetchpatch,
|
|
perl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gecode";
|
|
version = "3.7.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.gecode.org/download/${pname}-${version}.tar.gz";
|
|
sha256 = "0k45jas6p3cyldgyir1314ja3174sayn2h2ly3z9b4dl3368pk77";
|
|
};
|
|
|
|
patches = [
|
|
(import ./fix-const-weights-clang-patch.nix fetchpatch)
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace gecode/flatzinc/lexer.yy.cpp \
|
|
--replace "register " ""
|
|
'';
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
preConfigure = "patchShebangs configure";
|
|
|
|
env.CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++14";
|
|
|
|
meta = with lib; {
|
|
license = licenses.mit;
|
|
homepage = "https://www.gecode.org";
|
|
description = "Toolkit for developing constraint-based systems";
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.manveru ];
|
|
};
|
|
}
|