about summary refs log tree commit diff
path: root/pkgs/development/compilers/swi-prolog/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/swi-prolog/default.nix')
-rw-r--r--pkgs/development/compilers/swi-prolog/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/development/compilers/swi-prolog/default.nix b/pkgs/development/compilers/swi-prolog/default.nix
index 628e69eb5bc9..9336adb1cd76 100644
--- a/pkgs/development/compilers/swi-prolog/default.nix
+++ b/pkgs/development/compilers/swi-prolog/default.nix
@@ -54,7 +54,7 @@
 #     url = "https://raw.githubusercontent.com/samer--/prolog/master/typedef/release/typedef-0.1.9.tgz";
 #     sha256 = "056nqjn01g18fb1b2qivv9s7hb4azk24nx2d4kvkbmm1k91f44p3";
 #   };
-#   swiProlog = pkgs.swiProlog.override { extraPacks = map (dep-path: "'file://${dep-path}'") [
+#   swi-prolog = pkgs.swi-prolog.override { extraPacks = map (dep-path: "'file://${dep-path}'") [
 #     julian delay list_util typedef
 #   ]; };
 , extraPacks ? []
@@ -63,7 +63,7 @@
 
 let
   # minorVersion is even for stable, odd for unstable
-  version = "9.2.6";
+  version = "9.2.7";
 
   # 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.
@@ -71,10 +71,10 @@ let
   extraLibraries' = if extraLibraries == [] then [] else throw
     "option 'extraLibraries' removed - use 'with*' options (e.g., 'withJava'), or overrideAttrs to inject extra build dependencies";
 
-  packInstall = swiplPath: pack:
-    ''${swiplPath}/bin/swipl -g "pack_install(${pack}, [package_directory(\"${swiplPath}/lib/swipl/extra-pack\"), silent(true), interactive(false)])." -t "halt."
-    '';
-  withGui' = withGui && !stdenv.isDarwin;
+  packInstall = swiplPath: pack: ''
+    ${swiplPath}/bin/swipl -g "pack_install(${pack}, [package_directory(\"${swiplPath}/lib/swipl/extra-pack\"), silent(true), interactive(false), git(false)])." -t "halt."
+  '';
+  withGui' = withGui && !stdenv.hostPlatform.isDarwin;
   optionalDependencies = []
                          ++ (lib.optional withDb db)
                          ++ (lib.optional withJava jdk)
@@ -85,7 +85,7 @@ let
                          ++ (lib.optionals withGui' [ libXt libXext libXpm libXft libXinerama
                                                       libjpeg libSM freetype fontconfig
                                                     ])
-                         ++ (lib.optional stdenv.isDarwin Security)
+                         ++ (lib.optional stdenv.hostPlatform.isDarwin Security)
                          ++ extraLibraries';
 in
 stdenv.mkDerivation {
@@ -99,7 +99,7 @@ stdenv.mkDerivation {
     owner = "SWI-Prolog";
     repo = "swipl";
     rev = "V${version}";
-    hash = "sha256-FgEn+Ht45++GFpfcdaJ5In5x+NyIOopSlSAs+t7sPDE=";
+    hash = "sha256-O9ogltcbBST111FA85jEVW6jGOLJSt/5PeBABtMu2Ws=";
     fetchSubmodules = true;
   };
 
@@ -126,8 +126,8 @@ stdenv.mkDerivation {
   cmakeFlags = [ "-DSWIPL_INSTALL_IN_LIB=ON" ]
                ++ lib.optionals (!withNativeCompiler) [
                  # without these options, the build will embed full compiler paths
-                 "-DSWIPL_CC=${if stdenv.isDarwin then "clang" else "gcc"}"
-                 "-DSWIPL_CXX=${if stdenv.isDarwin then "clang++" else "g++"}"
+                 "-DSWIPL_CC=${if stdenv.hostPlatform.isDarwin then "clang" else "gcc"}"
+                 "-DSWIPL_CXX=${if stdenv.hostPlatform.isDarwin then "clang++" else "g++"}"
                ];
 
   preInstall = ''