2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, fetchurl, readline, gmp, zlib }:
|
2013-09-11 19:40:10 +02:00
|
|
|
|
2009-10-28 15:06:56 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-01-27 13:35:07 +01:00
|
|
|
version = "6.3.3";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "yap";
|
2008-03-13 02:13:53 +01:00
|
|
|
|
2009-10-28 15:06:56 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.dcc.fc.up.pt/~vsc/Yap/${pname}-${version}.tar.gz";
|
2015-01-27 13:35:07 +01:00
|
|
|
sha256 = "0y7sjwimadqsvgx9daz28c9mxcx9n1znxklih9xg16k6n54v9qxf";
|
2008-03-13 02:13:53 +01:00
|
|
|
};
|
|
|
|
|
2013-09-11 20:43:04 +02:00
|
|
|
buildInputs = [ readline gmp zlib ];
|
2013-09-11 19:40:10 +02:00
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--enable-tabling=yes" ];
|
2013-10-05 20:59:34 +02:00
|
|
|
|
2022-05-18 09:32:06 +02:00
|
|
|
# -fcommon: workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: libYap.a(pl-dtoa.o):/build/yap-6.3.3/H/pl-yap.h:230: multiple definition of `ATOM_';
|
|
|
|
# libYap.a(pl-buffer.o):/build/yap-6.3.3/H/pl-yap.h:230: first defined here
|
2023-02-19 20:23:32 +01:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fpermissive -fcommon";
|
2018-02-18 18:11:11 +01:00
|
|
|
|
2013-09-11 20:43:04 +02:00
|
|
|
meta = {
|
2022-05-29 12:10:05 +02:00
|
|
|
# the linux 32 bit build fails.
|
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || !stdenv.is64bit;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.dcc.fc.up.pt/~vsc/Yap/";
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A ISO-compatible high-performance Prolog compiler";
|
2021-01-22 12:25:31 +01:00
|
|
|
license = lib.licenses.artistic2;
|
2013-09-11 20:43:04 +02:00
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
platforms = lib.platforms.linux;
|
2008-03-13 02:13:53 +01:00
|
|
|
};
|
|
|
|
}
|