Commit 63c7cab6 authored by Zhong Jianxin's avatar Zhong Jianxin
Browse files

less: Fix withSecure regression

parent cc88a5ee
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
{
  lib,
  fetchurl,
  fetchpatch,
  autoreconfHook,
  ncurses,
  pcre2,
  stdenv,
@@ -22,6 +24,23 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-KBn1VWTYbVQqu+yv2C/2HoGaPuyWf6o2zT5o8VlqRLg=";
  };

  patches = [
    (fetchpatch {
      # Fix configure parameters --with-secure=no and --without-secure.
      url = "https://github.com/gwsw/less/commit/8fff6c56bfc833528b31ebdaee871f65fbe342b1.patch";
      hash = "sha256-XV5XufivNWWLGeIpaP04YQPWcxIUKYYEINdT+eEx+WA=";
      includes = [
        "configure.ac"
      ];
    })
  ];

  # Need `autoreconfHook` since we patch `configure.ac`.
  # TODO: Remove the `configure.ac` patch and `autoreconfHook` next release
  nativeBuildInputs = [
    autoreconfHook
  ];

  buildInputs = [
    ncurses
    pcre2