2009-01-12 21:12:07 +00:00
|
|
|
{fetchurl, stdenv, replace, ncurses}:
|
2007-07-07 23:31:37 +01:00
|
|
|
|
2008-11-13 21:05:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-05-31 09:34:57 +01:00
|
|
|
name = "cmake-2.6.4";
|
2009-02-13 14:43:01 +00:00
|
|
|
|
|
|
|
# We look for cmake modules in .../share/cmake-${majorVersion}/Modules.
|
2009-04-17 14:48:22 +01:00
|
|
|
majorVersion = "2.6";
|
|
|
|
|
2008-11-13 21:05:01 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
2009-04-17 14:48:22 +01:00
|
|
|
|
2008-11-13 21:05:01 +00:00
|
|
|
meta = {
|
2009-02-13 14:43:01 +00:00
|
|
|
homepage = http://www.cmake.org/;
|
2008-11-13 21:05:01 +00:00
|
|
|
description = "Cross-Platform Makefile Generator";
|
|
|
|
};
|
2009-04-17 14:48:22 +01:00
|
|
|
|
2008-11-13 21:05:01 +00:00
|
|
|
src = fetchurl {
|
2009-04-17 14:48:22 +01:00
|
|
|
url = "http://www.cmake.org/files/v${majorVersion}/${name}.tar.gz";
|
2009-05-31 09:34:57 +01:00
|
|
|
sha256 = "1wpxr5x4aggaqrqzjq3kg4hh09f0vyr1njik1pad01bvwd923pcw";
|
2007-07-07 23:31:37 +01:00
|
|
|
};
|
2009-04-17 14:48:22 +01:00
|
|
|
|
2009-06-03 10:19:19 +01:00
|
|
|
patches = [ ./findqt4.patch ];
|
|
|
|
|
2009-02-13 14:43:01 +00: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-04-17 14:48:22 +01:00
|
|
|
|
2009-01-12 21:12:07 +00:00
|
|
|
configureFlags= [ " --init=cmakeInit.txt " ];
|
2009-04-17 14:48:22 +01:00
|
|
|
|
2009-02-13 14:43:01 +00:00
|
|
|
postInstall = "fixCmakeFiles $out/share";
|
2007-07-07 23:31:37 +01:00
|
|
|
}
|