summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-22 18:19:04 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-02-22 18:19:04 +0000
commit2e92cabb37d8ba81eeebcf9522510e2a4f8aafae (patch)
tree0e1df3140b116760c2ab39d6cff739f97b412fe2 /pkgs/tools/text
parent359e488921067139c83b14b11ec31ec01e9454ef (diff)
downloadnixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.tar
nixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.tar.gz
nixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.tar.bz2
nixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.tar.lz
nixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.tar.xz
nixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.tar.zst
nixlib-2e92cabb37d8ba81eeebcf9522510e2a4f8aafae.zip
* substitute: support patterns starting with a dash.
* Updated the kernel headers.
* ghc: setup hooks are now generated using substituteAll.

svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10838
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/gnugrep/default.nix12
-rw-r--r--pkgs/tools/text/replace/default.nix6
2 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/tools/text/gnugrep/default.nix b/pkgs/tools/text/gnugrep/default.nix
index b0a95beb56ca..fcb45f2cb3de 100644
--- a/pkgs/tools/text/gnugrep/default.nix
+++ b/pkgs/tools/text/gnugrep/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl, pcre}:
 
-stdenv.mkDerivation ({
+stdenv.mkDerivation {
   name = "gnugrep-2.5.3";
   
   src = fetchurl {
@@ -10,12 +10,12 @@ stdenv.mkDerivation ({
   
   buildInputs = [pcre];
 
+  preBuild = ''
+    makeFlagsArray=(mkdir_p="mkdir -p")
+  '';
+  
   meta = {
     homepage = http://www.gnu.org/software/grep/;
     description = "GNU implementation of the Unix grep command";
   };
-} // (if stdenv.system == "i686-darwin" then {
-  preBuild = ''
-    makeFlagsArray=(mkdir_p="mkdir -p")
-  '';
-} else {}))
\ No newline at end of file
+}
diff --git a/pkgs/tools/text/replace/default.nix b/pkgs/tools/text/replace/default.nix
index 85e2fe2caca3..7ac41bbe8bf2 100644
--- a/pkgs/tools/text/replace/default.nix
+++ b/pkgs/tools/text/replace/default.nix
@@ -1,6 +1,6 @@
 {stdenv, fetchurl}:
 
-stdenv.mkDerivation ({
+stdenv.mkDerivation {
   name = "replace-2.24";
 
   src = fetchurl {
@@ -12,8 +12,10 @@ stdenv.mkDerivation ({
 
   postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
 
+  patches = [./malloc.patch];
+
   meta = {
     homepage = http://replace.richardlloyd.org.uk/;
     description = "A tool to replace verbatim strings";
   };
-} // (if stdenv.system == "i686-darwin" then {patches = [./malloc.patch];} else {}))
+}