about summary refs log tree commit diff
path: root/pkgs/development/interpreters/guile/3.0.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/interpreters/guile/3.0.nix')
-rw-r--r--pkgs/development/interpreters/guile/3.0.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/guile/3.0.nix b/pkgs/development/interpreters/guile/3.0.nix
index f7797a7c8ad2..1eeda97b0f8b 100644
--- a/pkgs/development/interpreters/guile/3.0.nix
+++ b/pkgs/development/interpreters/guile/3.0.nix
@@ -49,7 +49,7 @@ builder rec {
     libtool
     libunistring
     readline
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     libxcrypt
   ];
   propagatedBuildInputs = [
@@ -62,7 +62,7 @@ builder rec {
     # flags, see below.
     libtool
     libunistring
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     libxcrypt
   ];
 
@@ -75,7 +75,7 @@ builder rec {
   patches = [
     ./eai_system.patch
   ] ++ lib.optional (coverageAnalysis != null) ./gcov-file-name.patch
-  ++ lib.optional stdenv.isDarwin
+  ++ lib.optional stdenv.hostPlatform.isDarwin
     (fetchpatch {
       url = "https://gitlab.gnome.org/GNOME/gtk-osx/raw/52898977f165777ad9ef169f7d4818f2d4c9b731/patches/guile-clocktime.patch";
       sha256 = "12wvwdna9j8795x59ldryv9d84c1j3qdk2iskw09306idfsis207";
@@ -90,7 +90,7 @@ builder rec {
 
   configureFlags = [
     "--with-libreadline-prefix=${lib.getDev readline}"
-  ] ++ lib.optionals stdenv.isSunOS [
+  ] ++ lib.optionals stdenv.hostPlatform.isSunOS [
     # Make sure the right <gmp.h> is found, and not the incompatible
     # /usr/include/mp.h from OpenSolaris.  See
     # <https://lists.gnu.org/archive/html/hydra-users/2012-08/msg00000.html>
@@ -105,7 +105,7 @@ builder rec {
   ]
   # At least on x86_64-darwin '-flto' autodetection is not correct:
   #  https://github.com/NixOS/nixpkgs/pull/160051#issuecomment-1046193028
-  ++ lib.optional (stdenv.isDarwin) "--disable-lto";
+  ++ lib.optional (stdenv.hostPlatform.isDarwin) "--disable-lto";
 
   postInstall = ''
     wrapProgram $out/bin/guile-snarf --prefix PATH : "${gawk}/bin"
@@ -129,7 +129,7 @@ builder rec {
   doInstallCheck = doCheck;
 
   # In procedure bytevector-u8-ref: Argument 2 out of range
-  dontStrip = stdenv.isDarwin;
+  dontStrip = stdenv.hostPlatform.isDarwin;
 
   setupHook = ./setup-hook-3.0.sh;