about summary refs log tree commit diff
path: root/pkgs/tools/text/gnugrep/default.nix
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2023-04-28 12:47:45 +0200
committerJanne Heß <janne@hess.ooo>2023-05-15 10:21:34 +0200
commit11c8f46850d0f56fa14c880db4e06fade3db2d67 (patch)
tree11ef8cdc3a9901c1671d0589ea73cba48005b636 /pkgs/tools/text/gnugrep/default.nix
parent658c76a54fa14b5a1cbaa966be7dac3fe1fe38a6 (diff)
gnugrep/stdenv: Fix PCRE support by replacing PCRE lib
Diffstat (limited to 'pkgs/tools/text/gnugrep/default.nix')
-rw-r--r--pkgs/tools/text/gnugrep/default.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix
index 9b6936ec9b651..992645a15db54 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, autoreconfHook }:
+{ lib, stdenv, fetchurl, pcre2, libiconv, perl, autoreconfHook }:
 
 # Note: this package is used for bootstrapping fetchurl, and thus
 # cannot use fetchpatch! All mutable patches (generated by GitHub or
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
   nativeCheckInputs = [ perl ];
   outputs = [ "out" "info" ]; # the man pages are rather small
 
-  buildInputs = [ pcre libiconv ];
+  buildInputs = [ pcre2 libiconv ];
 
   # cygwin: FAIL: multibyte-white-space
   # freebsd: FAIL mb-non-UTF8-performance
@@ -63,5 +63,7 @@ stdenv.mkDerivation {
     mainProgram = "grep";
   };
 
-  passthru = {inherit pcre;};
+  passthru = {
+    inherit pcre2;
+  };
 }