Author: simons
Date: Mon Dec  6 17:43:57 2010
New Revision: 25006
URL: https://svn.nixos.org/websvn/nix/?rev=25006&sc=1

Log:
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.

Modified:
   nixpkgs/branches/stdenv-updates/pkgs/tools/text/replace/default.nix

Modified: nixpkgs/branches/stdenv-updates/pkgs/tools/text/replace/default.nix
==============================================================================
--- nixpkgs/branches/stdenv-updates/pkgs/tools/text/replace/default.nix Mon Dec 
 6 15:30:19 2010        (r25005)
+++ nixpkgs/branches/stdenv-updates/pkgs/tools/text/replace/default.nix Mon Dec 
 6 17:43:57 2010        (r25006)
@@ -8,12 +8,13 @@
     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];
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to