sc-im: make libxls optional

libxls has several security issues that haven't been addresses in
months. Since it is an optional dependency of sc-im, this makes it
optional in Nix as well and disabling it by default.
This commit is contained in:
gaykitty 2023-12-06 05:42:41 -05:00
parent 91050ea1e5
commit b0a6ea2442

View File

@ -11,6 +11,7 @@
, libxml2
, libzip
, ncurses
, xlsSupport ? false
}:
stdenv.mkDerivation rec {
@ -35,11 +36,12 @@ stdenv.mkDerivation rec {
buildInputs = [
gnuplot
libxls
libxlsxwriter
libxml2
libzip
ncurses
] ++ lib.optionals xlsSupport [
libxls
libxlsxwriter
];
makeFlags = [ "prefix=${placeholder "out"}" ];