summary refs log tree commit diff
path: root/pkgs/tools/text/gnugrep/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/gnugrep/builder.sh')
-rwxr-xr-xpkgs/tools/text/gnugrep/builder.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/pkgs/tools/text/gnugrep/builder.sh b/pkgs/tools/text/gnugrep/builder.sh
index 3453b5b0cb8..cb2c91a6b07 100755
--- a/pkgs/tools/text/gnugrep/builder.sh
+++ b/pkgs/tools/text/gnugrep/builder.sh
@@ -1,10 +1,14 @@
-#! /bin/sh
+#! /bin/sh -e
 
+set -x
+export NIX_DEBUG=1
 buildinputs="$pcre"
-. $stdenv/setup || exit 1
+. $stdenv/setup
 
-tar xvfj $src || exit 1
-cd grep-* || exit 1
-./configure --prefix=$out || exit 1
-make || exit 1
-make install || exit 1
+echo $NIX_LDFLAGS
+
+tar xvfj $src
+cd grep-*
+./configure --prefix=$out
+make
+make install