summary refs log tree commit diff
path: root/pkgs/tools/text/replace
diff options
context:
space:
mode:
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];