about summary refs log tree commit diff
path: root/pkgs/development/libraries/avahi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/avahi/default.nix')
-rw-r--r--pkgs/development/libraries/avahi/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/avahi/default.nix b/pkgs/development/libraries/avahi/default.nix
index 95f82d8def2b..3e9be1f5fc71 100644
--- a/pkgs/development/libraries/avahi/default.nix
+++ b/pkgs/development/libraries/avahi/default.nix
@@ -141,7 +141,7 @@ stdenv.mkDerivation rec {
     expat
     libiconv
     libevent
-  ] ++ lib.optionals stdenv.isFreeBSD [
+  ] ++ lib.optionals stdenv.hostPlatform.isFreeBSD [
     libpcap
   ] ++ lib.optionals gtk3Support [
     gtk3
@@ -171,7 +171,7 @@ stdenv.mkDerivation rec {
     "--with-systemdsystemunitdir=no"
   ] ++ lib.optionals withLibdnssdCompat [
     "--enable-compat-libdns_sd"
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     # autoipd won't build on darwin
     "--disable-autoipd"
   ];
@@ -183,7 +183,7 @@ stdenv.mkDerivation rec {
     "sysconfdir=${placeholder "out"}/etc"
   ];
 
-  preBuild = lib.optionalString stdenv.isDarwin ''
+  preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
     sed -i '20 i\
     #define __APPLE_USE_RFC_2292' \
     avahi-core/socket.c