yap: 7.6.0-unstable-2025-05-23 -> 8.0.1-unstable-2025-10-27 (#444349)

This commit is contained in:
Sandro
2025-10-28 12:51:16 +00:00
committed by GitHub
+13 -5
View File
@@ -9,18 +9,20 @@
gmp,
zlib,
librdf_raptor2,
nix-update-script,
writeShellScript,
nix-update,
common-updater-scripts,
}:
stdenv.mkDerivation {
pname = "yap";
version = "7.6.0-unstable-2025-05-23";
version = "8.0.1-unstable-2025-10-27";
src = fetchFromGitHub {
owner = "vscosta";
repo = "yap";
rev = "010bb5e48d2f4fbdc0c47ae9faa830a179b3c31b";
hash = "sha256-ojhporq7vCEtdwCIRHwzjpc6dbFFXAgF+p6M7eL3JIE=";
rev = "d5ef32dec671e8d1bc7465e3d2ecdf468c568f16";
hash = "sha256-aNA7OV+UjdcCL5Ia2tzPgDLcn6/bzvKfdk2aWk300zk=";
};
nativeBuildInputs = [
@@ -50,7 +52,13 @@ stdenv.mkDerivation {
# libYap.a(pl-buffer.o):/build/yap-6.3.3/H/pl-yap.h:230: first defined here
env.NIX_CFLAGS_COMPILE = "-fpermissive -fcommon";
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
passthru.updateScript = writeShellScript "update-yap" ''
${lib.getExe nix-update} yap --version=branch
version=$(nix eval --raw --file . yap.version)
src=$(nix eval --raw --file . yap.src)
latestVersion=$(grep -E '^[[:space:]]*set\(YAP_(MAJOR|MINOR|PATCH)_VERSION' "$src"/CMakeLists.txt | sed -E 's/.* ([0-9]+).*/\1/' | paste -sd.)
${lib.getExe' common-updater-scripts "update-source-version"} yap ''${latestVersion}-''${version#*-} --ignore-same-hash
'';
meta = {
# linux 32 bit build fails.