047f6d20d5
svn path=/nixpkgs/trunk/; revision=15114
32 lines
841 B
Nix
32 lines
841 B
Nix
{fetchurl, stdenv, replace, ncurses}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cmake-2.6.3";
|
|
|
|
# We look for cmake modules in .../share/cmake-${majorVersion}/Modules.
|
|
majorVersion = "2.6";
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = {
|
|
homepage = http://www.cmake.org/;
|
|
description = "Cross-Platform Makefile Generator";
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "http://www.cmake.org/files/v${majorVersion}/${name}.tar.gz";
|
|
sha256 = "3c3af80526a32bc2afed616e8f486b847144f2fa3a8e441908bd39c38b146450";
|
|
};
|
|
|
|
postUnpack = ''
|
|
dontUseCmakeConfigure=1
|
|
source $setupHook
|
|
fixCmakeFiles $sourceRoot
|
|
echo 'SET (CMAKE_SYSTEM_PREFIX_PATH "'${ncurses}'" CACHE FILEPATH "Root for libs for cmake" FORCE)' > $sourceRoot/cmakeInit.txt
|
|
'';
|
|
|
|
configureFlags= [ " --init=cmakeInit.txt " ];
|
|
|
|
postInstall = "fixCmakeFiles $out/share";
|
|
}
|