Merge pull request #278830 from azuwis/sslh

sslh: support darwin
This commit is contained in:
Nick Cao 2024-01-05 14:25:40 -05:00 committed by GitHub
commit 13447fc1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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