mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
07caf9a9bd
svn path=/nixpkgs/trunk/; revision=15807
32 lines
829 B
Nix
32 lines
829 B
Nix
{fetchurl, stdenv, replace, ncurses}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cmake-2.6.4";
|
|
|
|
# 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 = "1wpxr5x4aggaqrqzjq3kg4hh09f0vyr1njik1pad01bvwd923pcw";
|
|
};
|
|
|
|
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";
|
|
}
|