dhcpcd: fix static

I've stuck with checking isLinux rather than availableOn, because I
think that even if we ended up with libudev-devd on FreeBSD, we still
wouldn't want to use it in this package when it has its own FreeBSD
support.

+4 -4
+4 -4
pkgs/by-name/dh/dhcpcd/package.nix
··· 8 runtimeShellPackage, 9 runtimeShell, 10 nixosTests, 11 enablePrivSep ? false, 12 }: 13 ··· 27 [ 28 runtimeShellPackage # So patchShebangs finds a bash suitable for the installed scripts 29 ] 30 - ++ lib.optionals stdenv.hostPlatform.isLinux [ 31 udev 32 ] 33 ++ lib.optionals stdenv.hostPlatform.isFreeBSD [ ··· 58 ]; 59 60 # Check that the udev plugin got built. 61 - postInstall = lib.optionalString ( 62 - udev != null && stdenv.hostPlatform.isLinux 63 - ) "[ -e ${placeholder "out"}/lib/dhcpcd/dev/udev.so ]"; 64 65 passthru.tests = { 66 inherit (nixosTests.networking.scripted)
··· 8 runtimeShellPackage, 9 runtimeShell, 10 nixosTests, 11 + # Always tries to do dynamic linking for udev. 12 + withUdev ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isStatic, 13 enablePrivSep ? false, 14 }: 15 ··· 29 [ 30 runtimeShellPackage # So patchShebangs finds a bash suitable for the installed scripts 31 ] 32 + ++ lib.optionals withUdev [ 33 udev 34 ] 35 ++ lib.optionals stdenv.hostPlatform.isFreeBSD [ ··· 60 ]; 61 62 # Check that the udev plugin got built. 63 + postInstall = lib.optionalString withUdev "[ -e ${placeholder "out"}/lib/dhcpcd/dev/udev.so ]"; 64 65 passthru.tests = { 66 inherit (nixosTests.networking.scripted)