···
10
-
stdenv.mkDerivation rec {
15
+
stdenv.mkDerivation {
17
+
version = "7.6.0-unstable-2025-05-23";
15
-
url = "https://www.dcc.fc.up.pt/~vsc/Yap/${pname}-${version}.tar.gz";
16
-
sha256 = "0y7sjwimadqsvgx9daz28c9mxcx9n1znxklih9xg16k6n54v9qxf";
19
+
src = fetchFromGitHub {
22
+
rev = "010bb5e48d2f4fbdc0c47ae9faa830a179b3c31b";
23
+
hash = "sha256-ojhporq7vCEtdwCIRHwzjpc6dbFFXAgF+p6M7eL3JIE=";
26
+
nativeBuildInputs = [
25
-
configureFlags = [ "--enable-tabling=yes" ];
40
+
(lib.cmakeBool "WITH_READLINE" true)
41
+
(lib.cmakeBool "WITH_R" true)
42
+
(lib.cmakeBool "WITH_Raptor2" true)
43
+
(lib.cmakeBool "WITH_CUDD" false)
44
+
(lib.cmakeBool "WITH_Gecode" false)
# -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";
53
+
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
34
-
# the linux 32 bit build fails.
56
+
# linux 32 bit build fails.
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) || !stdenv.hostPlatform.is64bit;
37
-
homepage = "http://www.dcc.fc.up.pt/~vsc/Yap/";
59
+
homepage = "https://github.com/vscosta/yap";
description = "ISO-compatible high-performance Prolog compiler";
license = lib.licenses.artistic2;
platforms = lib.platforms.linux;