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
This commit is contained in:
@@ -8,12 +8,13 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
|
sha256 = "1c2nkxx83vmlh1v3ib6r2xqh121gdb1rharwsimcb2h0xwc558dm";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = ["TREE=\$(out)"];
|
makeFlags = "TREE=\$(out) MANTREE=\$(TREE)/share/man";
|
||||||
|
|
||||||
crossAttrs = {
|
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";
|
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
|
||||||
|
|
||||||
patches = [./malloc.patch];
|
patches = [./malloc.patch];
|
||||||
|
|||||||
Reference in New Issue
Block a user