summary refs log tree commit diff
path: root/pkgs/tools/text/replace
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-12-06 17:43:57 +0000
committerPeter Simons <simons@cryp.to>2010-12-06 17:43:57 +0000
commit475cbea1015ad87a262a4974651289ae0098322b (patch)
treead0a830a2e94c25a0330219c340c2bcd3818b363 /pkgs/tools/text/replace
parent09bcba17f5bac4e93031e00c6684d25e9b770477 (diff)
downloadnixpkgs-475cbea1015ad87a262a4974651289ae0098322b.tar
nixpkgs-475cbea1015ad87a262a4974651289ae0098322b.tar.gz
nixpkgs-475cbea1015ad87a262a4974651289ae0098322b.tar.bz2
nixpkgs-475cbea1015ad87a262a4974651289ae0098322b.tar.lz
nixpkgs-475cbea1015ad87a262a4974651289ae0098322b.tar.xz
nixpkgs-475cbea1015ad87a262a4974651289ae0098322b.tar.zst
nixpkgs-475cbea1015ad87a262a4974651289ae0098322b.zip
pkgs/tools/text/replace: move --mandir to standard location $out/share/man
Also, fixed the type of $makeFlags, which is a string, not a list.

svn path=/nixpkgs/branches/stdenv-updates/; revision=25006
Diffstat (limited to 'pkgs/tools/text/replace')
-rw-r--r--pkgs/tools/text/replace/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/tools/text/replace/default.nix b/pkgs/tools/text/replace/default.nix
index 339bf510c4b..01e58146ed8 100644
--- a/pkgs/tools/text/replace/default.nix
+++ b/pkgs/tools/text/replace/default.nix
@@ -8,12 +8,13 @@ stdenv.mkDerivation {
     sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
   };
 
-  makeFlags = ["TREE=\$(out)"];
+  makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man";
 
   crossAttrs = {
-    makeFlags = [ "TREE=\$(out)" "CC=${stdenv.cross.config}-gcc" ];
+    makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man CC=${stdenv.cross.config}-gcc";
   };
 
+  preInstall = "ensureDir \$out/share/man";
   postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
 
   patches = [./malloc.patch];