diff options
author | Zhong Jianxin <azuwis@gmail.com> | 2024-01-04 19:10:44 +0800 |
---|---|---|
committer | Zhong Jianxin <azuwis@gmail.com> | 2024-01-04 19:10:44 +0800 |
commit | 3c9153ebc0d7c7efb5e56344b0170bdefa2c37fc (patch) | |
tree | e8f10aba0988fb763c8707c648e258e2147bd1bf /pkgs/servers/sslh | |
parent | d858c8d75424dbdf1cff81bc21fcf71d048e972b (diff) |
sslh: support darwin
Diffstat (limited to 'pkgs/servers/sslh')
-rw-r--r-- | pkgs/servers/sslh/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/servers/sslh/default.nix b/pkgs/servers/sslh/default.nix index 735054eb61a92..7c3cc4635e257 100644 --- a/pkgs/servers/sslh/default.nix +++ b/pkgs/servers/sslh/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, libcap, libev, libconfig, perl, tcp_wrappers, pcre2, nixosTests }: +{ lib, stdenv, fetchFromGitHub, libcap, libev, libconfig, perl, tcp_wrappers, pcre2, nixosTests }: stdenv.mkDerivation rec { pname = "sslh"; @@ -13,9 +13,9 @@ stdenv.mkDerivation rec { postPatch = "patchShebangs *.sh"; - buildInputs = [ libcap libev libconfig perl tcp_wrappers pcre2 ]; + buildInputs = [ libev libconfig perl pcre2 ] ++ lib.optionals stdenv.isLinux [ libcap tcp_wrappers ]; - makeFlags = [ "USELIBCAP=1" "USELIBWRAP=1" ]; + makeFlags = lib.optionals stdenv.isLinux [ "USELIBCAP=1" "USELIBWRAP=1" ]; postInstall = '' # install all flavours |