1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

tcpdump: fix eval if no kernelMajor specified, assume compat

This commit is contained in:
Will Dietz 2018-01-05 19:27:02 -06:00 committed by Orivej Desh
parent 728dda584b
commit d630be51ab

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
crossAttrs = {
LDFLAGS = if enableStatic then "-static" else "";
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
(hostPlatform.platform.kernelMajor == "2.4") "--disable-ipv6");
(hostPlatform.platform.kernelMajor or null == "2.4") "--disable-ipv6");
};
meta = {