nixpkgs/pkgs/development/compilers/yap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, readline, gmp, zlib }:
2013-09-11 17:40:10 +00:00
stdenv.mkDerivation rec {
2015-01-27 12:35:07 +00:00
version = "6.3.3";
pname = "yap";
src = fetchurl {
url = "https://www.dcc.fc.up.pt/~vsc/Yap/${pname}-${version}.tar.gz";
2015-01-27 12:35:07 +00:00
sha256 = "0y7sjwimadqsvgx9daz28c9mxcx9n1znxklih9xg16k6n54v9qxf";
};
buildInputs = [ readline gmp zlib ];
2013-09-11 17:40:10 +00:00
2018-07-25 21:44:21 +00:00
configureFlags = [ "--enable-tabling=yes" ];
2013-10-05 18:59:34 +00: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
env.NIX_CFLAGS_COMPILE = "-fpermissive -fcommon";
meta = {
# the linux 32 bit build fails.
broken = (stdenv.isLinux && stdenv.isAarch64) || !stdenv.is64bit;
homepage = "http://www.dcc.fc.up.pt/~vsc/Yap/";
description = "A ISO-compatible high-performance Prolog compiler";
license = lib.licenses.artistic2;
platforms = lib.platforms.linux;
};
}