Added options for gnu-systems & setproctitle to flake

This commit is contained in:
zsuper 2025-04-03 19:43:15 -07:00
parent 5e9a22d035
commit ad8a6a1c7e

View file

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