2009-01-12 22:12:07 +01:00
|
|
|
{fetchurl, stdenv, replace, ncurses}:
|
2007-07-08 00:31:37 +02:00
|
|
|
|
2008-11-13 22:05:01 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cmake-2.6.2";
|
2009-02-13 15:43:01 +01:00
|
|
|
|
|
|
|
# We look for cmake modules in .../share/cmake-${majorVersion}/Modules.
|
|
|
|
majorVersion = "2.6";
|
|
|
|
|
2008-11-13 22:05:01 +01:00
|
|
|
setupHook = ./setup-hook.sh;
|
2009-02-13 15:43:01 +01:00
|
|
|
|
2008-11-13 22:05:01 +01:00
|
|
|
meta = {
|
2009-02-13 15:43:01 +01:00
|
|
|
homepage = http://www.cmake.org/;
|
2008-11-13 22:05:01 +01:00
|
|
|
description = "Cross-Platform Makefile Generator";
|
|
|
|
};
|
2009-02-13 15:43:01 +01:00
|
|
|
|
2008-11-13 22:05:01 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.cmake.org/files/v2.6/${name}.tar.gz";
|
|
|
|
sha256 = "b3f5a9dfa97fb82cb1b7d78a62d949f93c8d4317af36674f337d27066fa6b7e9";
|
2007-07-08 00:31:37 +02:00
|
|
|
};
|
2009-02-13 15:43:01 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2009-01-12 22:12:07 +01:00
|
|
|
configureFlags= [ " --init=cmakeInit.txt " ];
|
2009-02-13 15:43:01 +01:00
|
|
|
|
|
|
|
postInstall = "fixCmakeFiles $out/share";
|
2007-07-08 00:31:37 +02:00
|
|
|
}
|