anchor.diff:    hardeningDisable = [ "format" ];
   
     cmakeFlags = [ "-DSWIPL_INSTALL_IN_LIB=ON" ];
  +
  +  preInstall = ''
  +    mkdir -p $out/lib/swipl/pack
  +  '';
   
     postInstall = builtins.concatStringsSep "\n"
     ( builtins.map (packInstall "$out") extraPacks
  
positive.code: , cmake, libyaml, Security
  , libjpeg, libX11, libXext, libXft, libXinerama
  , extraLibraries ? [ jdk unixODBC libXpm libSM libXt freetype fontconfig ]
  , extraPacks     ? []
  , withGui ? false
  }:
  
  
negative.code:     fetchSubmodules = true;
    };
  
    # Add the packInstall path to the swipl pack search path
    postPatch = ''
      echo "user:file_search_path(pack, '$out/lib/swipl/pack')." >> /build/$sourceRoot/boot/init.pl
    '';
  
    nativeBuildInputs = [ cmake pkg-config ];
  
    buildInputs = [ gmp readline openssl
  