3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/cmake/default.nix
Yury G. Kudryashov 67d41efde1 Added some parts of kde-4. It doesn't work yet, but I need version control
svn path=/nixpkgs/trunk/; revision=9049
2007-08-05 13:54:42 +00:00

25 lines
695 B
Nix

{stdenv, fetchurl}:
stdenv.mkDerivation {
name = "cmake-2.4.6";
setupHook = ./setup-hook.sh;
src = fetchurl {
url = http://www.cmake.org/files/v2.4/cmake-2.4.6.tar.gz;
sha256 = "0163q13gw9ff28dpbwq23h83qfqabvcxrzsi9cjpyc9dfg7jpf5g";
};
buildInputs = [];
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";
meta = {
description = "Cross-Platform Makefile Generator";
};
}