mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
cmake: use single output
Fixes #15184. Install everything, including documentation, into one output, increasing package size by 10%. Otherwise, the help commands for CMake do not work. This is a good trade because CMake should be a build-only dependency. The only reason the docs should ever make it to runtime is if the user has actually installed CMake, in which case there's a pretty good chance they want the docs, too.
This commit is contained in:
parent
68b4c4caa7
commit
b70d728ed7
1 changed files with 2 additions and 6 deletions
|
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||
optional (stdenv ? glibc) ./search-path-3.2.patch
|
||||
++ optional stdenv.isCygwin ./3.2.2-cygwin.patch;
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
outputs = [ "out" ];
|
||||
setOutputFlags = false;
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
|
|||
--subst-var-by glibc_lib ${getLib glibc}
|
||||
'';
|
||||
configureFlags =
|
||||
[ "--docdir=/share/doc/${name}"
|
||||
[ "--docdir=share/doc/${name}"
|
||||
"--no-system-jsoncpp"
|
||||
]
|
||||
++ optional (!stdenv.isCygwin) "--system-libs"
|
||||
|
@ -64,10 +64,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preInstall = ''mkdir "$doc" '';
|
||||
|
||||
postInstall = ''moveToOutput "share/cmake-*/Help" "$doc" '';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.cmake.org/;
|
||||
description = "Cross-Platform Makefile Generator";
|
||||
|
|
Loading…
Reference in a new issue