Merge pull request #175039 from azahi/clingcon-fix

clingcon: fix build

authored by Robert Scott and committed by GitHub 17b62c33 c48756aa

+28
+4
pkgs/applications/science/logic/potassco/clingcon.nix
··· 16 16 sha256 = "1g2xkz9nsgqnrw3fdf5jchl16f0skj5mm32va61scc2yrchll166"; 17 17 }; 18 18 19 + patches = [ 20 + ./clingcon_limits.patch 21 + ]; 22 + 19 23 postPatch = '' 20 24 cp ${catch2}/include/catch2/catch.hpp libclingcon/tests/catch.hpp 21 25 '';
+24
pkgs/applications/science/logic/potassco/clingcon_limits.patch
··· 1 + diff --git i/libclingcon/clingcon/base.hh w/libclingcon/clingcon/base.hh 2 + index 2d449fe..0b5fa17 100644 3 + --- i/libclingcon/clingcon/base.hh 4 + +++ w/libclingcon/clingcon/base.hh 5 + @@ -28,6 +28,7 @@ 6 + #include <clingo.hh> 7 + #include <optional> 8 + #include <forward_list> 9 + +#include <limits> 10 + 11 + //! @file clingcon/base.hh 12 + //! Basic data types. 13 + diff --git i/libclingcon/clingcon/util.hh w/libclingcon/clingcon/util.hh 14 + index df4cddd..308259e 100644 15 + --- i/libclingcon/clingcon/util.hh 16 + +++ w/libclingcon/clingcon/util.hh 17 + @@ -30,6 +30,7 @@ 18 + #include <map> 19 + #include <cstdlib> 20 + #include <stdexcept> 21 + +#include <limits> 22 + 23 + //! @file clingcon/util.hh 24 + //! Very general utility functions.