Skip to content

Commit

Permalink
less: Fix withSecure regression
Browse files Browse the repository at this point in the history
  • Loading branch information
azuwis committed Oct 29, 2024
1 parent cc88a5e commit b14efb9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkgs/by-name/le/less/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ stdenv.mkDerivation (finalAttrs: {
"man"
];

configureFlags = [
"--sysconfdir=/etc" # Look for 'sysless' in /etc
(lib.withFeatureAs true "regex" "pcre2")
(lib.withFeature withSecure "secure")
];
configureFlags =
[
"--sysconfdir=/etc" # Look for 'sysless' in /etc
(lib.withFeatureAs true "regex" "pcre2")
]
# Normally we should add `lib.withFeature withSecure "secure"` to configureFlags,
# but `--without-secure` does not work as expected in less-668, it enables secure
# mode instead, so only add `--with-secure` if enabled.
++ lib.optional withSecure "--with-secure";

strictDeps = true;

Expand Down

0 comments on commit b14efb9

Please sign in to comment.