diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-04-27 19:47:36 +0300 |
---|---|---|
committer | jackyliu16 <9713184+wegank@users.noreply.github.com> | 2023-04-27 20:06:43 +0300 |
commit | bb256ac1fa209274211f06ac87c6b29edfe5321f (patch) | |
tree | d9c90b23497826bd8fd077d10c2fa76b15f78af2 /pkgs/tools/text/gnugrep/default.nix | |
parent | a499ad9c9a8560203d0dd91d47eff2b7e5f7408e (diff) |
gnugrep: patch against loongarch64-linux
Diffstat (limited to 'pkgs/tools/text/gnugrep/default.nix')
-rw-r--r-- | pkgs/tools/text/gnugrep/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix index efb3be1c8fb2d..fc285bb4c4dea 100644 --- a/pkgs/tools/text/gnugrep/default.nix +++ b/pkgs/tools/text/gnugrep/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, pcre, libiconv, perl }: +{ lib, stdenv, fetchurl, pcre, libiconv, perl, autoreconfHook }: # Note: this package is used for bootstrapping fetchurl, and thus # cannot use fetchpatch! All mutable patches (generated by GitHub or @@ -16,8 +16,11 @@ stdenv.mkDerivation { sha256 = "0g42svbc1nq5bamxfj6x7320wli4dlj86padk0hwgbk04hqxl42w"; }; + # https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=b50c6442e43d79471a31a2a202d3e50c0557446f + patches = lib.optional stdenv.hostPlatform.isLoongArch64 ./sigsegv-loongarch.patch; + # Perl is needed for testing - nativeBuildInputs = [ perl ]; + nativeBuildInputs = [ perl ] ++ lib.optional stdenv.hostPlatform.isLoongArch64 autoreconfHook; outputs = [ "out" "info" ]; # the man pages are rather small buildInputs = [ pcre libiconv ]; |