gringo: fix darwin build

This commit is contained in:
Stanisław Pitucha 2022-10-17 15:33:53 +11:00
parent ab6176ac5b
commit cc1368a92f

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl,
bison, re2c, sconsPackages,
libcxx
libcxx, libcxxabi
}:
stdenv.mkDerivation rec {
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
substituteInPlace ./SConstruct \
--replace \
"env['LIBPATH'] = []" \
"env['LIBPATH'] = ['${lib.getLib libcxx}/lib']"
"env['LIBPATH'] = ['${lib.getLib libcxx}/lib', '${lib.getLib libcxxabi}/lib']"
'' + ''
sed '1i#include <limits>' -i libgringo/gringo/{control,term}.hh
'';