about summary refs log tree commit diff
path: root/pkgs/servers/squid/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/squid/default.nix')
-rw-r--r--pkgs/servers/squid/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/servers/squid/default.nix b/pkgs/servers/squid/default.nix
index 9229359d9159..998b2d9ada44 100644
--- a/pkgs/servers/squid/default.nix
+++ b/pkgs/servers/squid/default.nix
@@ -15,7 +15,7 @@ stdenv.mkDerivation (finalAttrs: {
   nativeBuildInputs = [ pkg-config ];
   buildInputs = [
     perl openldap db cyrus_sasl expat libxml2 openssl
-  ] ++ lib.optionals stdenv.isLinux [ libcap pam systemd ];
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap pam systemd ];
 
   enableParallelBuilding = true;
 
@@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
     "--enable-delay-pools"
     "--enable-x-accelerator-vary"
     "--enable-htcp"
-  ] ++ lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl)
+  ] ++ lib.optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isMusl)
     "--enable-linux-netfilter";
 
   doCheck = true;