Change:
It seems that errors with when attempting to have in . There has been no updates in the lspserver. I came across this while trying to update my systems. Currently, says , so that was the last build I had with the lsp not causing a build failure. Steps to reproduce the behavior: this expression: It seems this started happening in . Works fine on the parent commit. Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
It seems adding to allows it to build, it is not clear to me how is being used here as I am not familiar with how packs work in swiProlog and why made this necessary. From looking at that commit in , it appears to be something that changed upstream. This builds:
I can confirm that with 9.1.21, swi-prolog + lsp-server builds just fine, even with the latest packaging. Something must indeed have changed upstream. 9.1.22 is the first version that stops building for me. The notes that the pack system got a refactor at that point, so that's probably what is going on here, but nothing indicates a sudden need for git. If git is now necessary for pack installation (even if we already pre-cloned everything) it should be a dependency. any idea why git became necessary here?
We can resolve this with a patch to SWI-Prolog to respect in the options, then adding that option to our invocation. I submitted a PR to SWI-Prolog (SWI-Prolog/swipl-devel). If upstream merges this, we can just apply the same patch to stable.
swi-prolog 9.2.7 backported the PR mentioned above. I've modified the package definition to supply the proper flag which suppresses git use during extraPacks install.

Discussion:
<del> { lib, stdenv, swiProlog, makeWrapper, </del> <ins> { lib, stdenv, swi-prolog, makeWrapper, </ins> fetchFromGitHub, lexiconPath ? "prolog/lexicon/clex_lexicon.pl", pname ? "ape",

version = "2019-08-10"; nativeBuildInputs = [ makeWrapper ]; <del> buildInputs = [ swiProlog ]; </del> <ins> buildInputs = [ swi-prolog ]; </ins> src = fetchFromGitHub { owner = "Attempto";

{ lib, stdenv, fetchurl, makeWrapper , haskellPackages, haskell <del> , which, swiProlog, rlwrap, tk </del> <ins> , which, swi-prolog, rlwrap, tk </ins> , curl, git, unzip, gnutar, coreutils, sqlite }: let

in stdenv.mkDerivation { inherit pname version src; <del> buildInputs = [ swiProlog ]; </del> <ins> buildInputs = [ swi-prolog ]; </ins> nativeBuildInputs = [ which makeWrapper ]; makeFlags = [

#     url = "https://raw.githubusercontent.com/samer--/prolog/master/typedef/release/typedef-0.1.9.tgz"; #     sha256 = "056nqjn01g18fb1b2qivv9s7hb4azk24nx2d4kvkbmm1k91f44p3"; #   }; <del> #   swiProlog = pkgs.swiProlog.override { extraPacks = map (dep-path: "'file://${dep-path}'") [ </del> <ins> #   swi-prolog = pkgs.swi-prolog.override { extraPacks = map (dep-path: "'file://${dep-path}'") [ </ins> #     julian delay list_util typedef #   ]; }; , extraPacks ? []

let # minorVersion is even for stable, odd for unstable <del> version = "9.2.6"; </del> <ins> version = "9.2.7"; </ins> # This package provides several with* options, which replaces the old extraLibraries option. # This error should help users that still use this option find their way to these flags.

"option 'extraLibraries' removed - use 'with*' options (e.g., 'withJava'), or overrideAttrs to inject extra build dependencies"; packInstall = swiplPath: pack: <del> ''${swiplPath}/bin/swipl -g "pack_install(${pack}, [package_directory("${swiplPath}/lib/swipl/extra-pack"), silent(true), interactive(false)])." -t "halt." </del> <ins> ''${swiplPath}/bin/swipl -g "pack_install(${pack}, [package_directory("${swiplPath}/lib/swipl/extra-pack"), silent(true), interactive(false), git(false)])." -t "halt." </ins> ''; withGui' = withGui && !stdenv.isDarwin; optionalDependencies = []

owner = "SWI-Prolog"; repo = "swipl"; rev = "V${version}"; <del> hash = "sha256-FgEn+Ht45++GFpfcdaJ5In5x+NyIOopSlSAs+t7sPDE="; </del> <ins> hash = "sha256-O9ogltcbBST111FA85jEVW6jGOLJSt/5PeBABtMu2Ws="; </ins> fetchSubmodules = true; };

StormLib = stormlib; # Added 2024-01-21 sumneko-lua-language-server = lua-language-server; # Added 2023-02-07 supertux-editor = throw "'supertux-editor' has been removed, as it was broken and unmaintained"; # Added 2023-12-22 <ins> swiProlog = lib.warn "swiProlog has been renamed to swi-prolog" swi-prolog; # Added 2024-09-07 swiPrologWithGui = lib.warn "swiPrologWithGui has been renamed to swi-prolog-gui" swi-prolog-gui; # Added 2024-09-07 </ins> swift-im = throw "swift-im has been removed as it is unmaintained and depends on deprecated Python 2 / Qt WebKit"; # Added 2023-01-06 swig1 = throw "swig1 has been removed as it is obsolete"; # Added 2024-08-23 swig2 = throw "swig2 has been removed as it is obsolete"; # Added 2024-08-23

swiftPackages = recurseIntoAttrs (callPackage ../development/compilers/swift { }); inherit (swiftPackages) swift swiftpm sourcekit-lsp swift-format swiftpm2nix; <del> swiProlog = callPackage ../development/compilers/swi-prolog { </del> <ins> swi-prolog = callPackage ../development/compilers/swi-prolog { </ins> inherit (darwin.apple_sdk.frameworks) Security; }; <del> swiPrologWithGui = swiProlog.override { withGui = true; }; </del> <ins> swi-prolog-gui = swi-prolog.override { withGui = true; }; </ins> tbb_2020_3 = callPackage ../development/libraries/tbb/2020_3.nix { }; tbb_2021_5 = callPackage ../development/libraries/tbb/2021_5.nix { } ;