From ad8a6a1c7e93473bcc5a616567a2f4186670119d Mon Sep 17 00:00:00 2001 From: zsuper Date: Thu, 3 Apr 2025 19:43:15 -0700 Subject: [PATCH] Added options for gnu-systems & setproctitle to flake --- nix/proxytunnel.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nix/proxytunnel.nix b/nix/proxytunnel.nix index b72c112..7272eec 100644 --- a/nix/proxytunnel.nix +++ b/nix/proxytunnel.nix @@ -1,11 +1,12 @@ { - enableSSL ? true, + gnu-system ? true, set-proc-title ? true, pkgs, }: let - optflags = "${ - if enableSSL - then "-DUSE_SSL" + # TODO: Due to the way the OPENSSL_VERSION_NUMBER macro is checked, the -DUSE_SSL flag is NECESSARY + optflags = "-DUSE_SSL ${ + if gnu-system + then "-DHAVE_GETOPT_LONG" else "" } ${ if set-proc-title