squid{,4}: only enable netfilter bits on non-musl

This commit is contained in:
Will Dietz 2018-01-17 17:28:09 -06:00
parent 54b3967edc
commit 1ac2b79745
2 changed files with 2 additions and 6 deletions

View file

@ -27,9 +27,7 @@ stdenv.mkDerivation rec {
"--enable-removal-policies=lru,heap"
"--enable-delay-pools"
"--enable-x-accelerator-vary"
] ++ stdenv.lib.optionals stdenv.isLinux [
"--enable-linux-netfilter"
];
] ++ stdenv.lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl) "--enable-linux-netfilter";
meta = with stdenv.lib; {
description = "A caching proxy for the Web supporting HTTP, HTTPS, FTP, and more";

View file

@ -36,9 +36,7 @@ stdenv.mkDerivation rec {
"--enable-removal-policies=lru,heap"
"--enable-delay-pools"
"--enable-x-accelerator-vary"
] ++ stdenv.lib.optionals stdenv.isLinux [
"--enable-linux-netfilter"
];
] ++ stdenv.lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isMusl) "--enable-linux-netfilter";
meta = with stdenv.lib; {
description = "A caching proxy for the Web supporting HTTP, HTTPS, FTP, and more";