diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-01-23 11:48:17 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-01-26 21:54:31 +0000 |
commit | 64867daeae737b1ce0dbcefc23d499ec67891044 (patch) | |
tree | 138d3083a5e02c1c60a782dc84420fa5027be0cf /pkgs/development/libraries/avahi | |
parent | a58215b5eb8d5c53cc32189b4692ffab98e2dbfd (diff) |
avahi: fix build for FreeBSD
Diffstat (limited to 'pkgs/development/libraries/avahi')
-rw-r--r-- | pkgs/development/libraries/avahi/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/avahi/default.nix b/pkgs/development/libraries/avahi/default.nix index d57b6a75cbaa2..2d2fd4f57716b 100644 --- a/pkgs/development/libraries/avahi/default.nix +++ b/pkgs/development/libraries/avahi/default.nix @@ -6,6 +6,7 @@ , libdaemon , dbus , perlPackages +, libpcap , expat , gettext , glib @@ -63,7 +64,9 @@ stdenv.mkDerivation rec { ] ++ (with perlPackages; [ perl XMLParser - ]) ++ lib.optionals gtk3Support [ + ]) ++ lib.optionals stdenv.isFreeBSD [ + libpcap + ] ++ lib.optionals gtk3Support [ gtk3 ] ++ lib.optionals qt5Support [ qt5 @@ -86,7 +89,7 @@ stdenv.mkDerivation rec { "--localstatedir=/var" "--runstatedir=/run" "--sysconfdir=/etc" - "--with-distro=none" + "--with-distro=${with stdenv.hostPlatform; if isBSD then parsed.kernel.name else "none"}" # A systemd unit is provided by the avahi-daemon NixOS module "--with-systemdsystemunitdir=no" ] ++ lib.optionals withLibdnssdCompat [ |