2007-07-08 00:31:37 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "cmake-2.4.6";
|
2007-08-05 15:54:42 +02:00
|
|
|
setupHook = ./setup-hook.sh;
|
2007-07-08 00:31:37 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz;
|
|
|
|
sha256 = "0163q13gw9ff28dpbwq23h83qfqabvcxrzsi9cjpyc9dfg7jpf5g";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
|
2007-08-05 15:54:42 +02:00
|
|
|
preConfigure="find Modules -type f -name '*.cmake' |
|
|
|
|
xargs sed -e 's@/usr@/FOO@g' -e 's@ /\\(bin\\|sbin\\|lib\\)@ /FOO@g' -i";
|
|
|
|
|
|
|
|
postInstall="find \$out/share -type f -name '*.cmake' |
|
|
|
|
xargs sed -e 's@/usr@/FOO@g' -e 's@ /\\(bin\\|sbin\\|lib\\)@ /FOO@g' -i;
|
|
|
|
ensureDir \$out/nix-support;
|
|
|
|
cp -p $setupHook \$out/nix-support/setup-hook";
|
|
|
|
|
2007-07-08 00:31:37 +02:00
|
|
|
meta = {
|
2007-08-05 15:54:42 +02:00
|
|
|
description = "Cross-Platform Makefile Generator";
|
2007-07-08 00:31:37 +02:00
|
|
|
};
|
|
|
|
}
|