2008-04-11 11:30:46 +02:00
|
|
|
args : with args;
|
2008-08-15 00:18:44 +02:00
|
|
|
assert args ? kernel;
|
2008-04-11 11:30:46 +02:00
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://ftg.lbl.gov/CheckpointRestart/downloads/blcr-0.6.5.tar.gz ;
|
|
|
|
sha256 = "195gwxb38wmhzxr0jr349g6pxlwz6id2y6szv2akprv5ypy9py0g";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [perl];
|
|
|
|
configureFlags = [
|
2008-08-15 00:18:44 +02:00
|
|
|
"--with-linux=$(ls -d ${args.kernel}/lib/modules/*/build)"
|
|
|
|
"--with-kmod-dir=$out/lib/modules/$(cd ${args.kernel}/lib/modules; ls -d 2.6.*)"
|
|
|
|
"--with-system-map=${args.kernel}/System.map"
|
2008-04-11 11:30:46 +02:00
|
|
|
];
|
|
|
|
|
2008-04-24 19:00:28 +02:00
|
|
|
preConfigure = FullDepEntry (''
|
|
|
|
sed -e 's/FASTCALL//' -i configure configure.ac
|
|
|
|
sed -e 's/int (attach_pid/void (attach_pid/' -i configure configure.ac
|
|
|
|
'')["doUnpack" "minInit"];
|
|
|
|
|
2008-04-11 11:30:46 +02:00
|
|
|
/* doConfigure should be specified separately */
|
2008-04-24 19:00:28 +02:00
|
|
|
phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
|
2008-04-11 11:30:46 +02:00
|
|
|
|
|
|
|
name = "blcr-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Berkley Labs Checkpointing/Restarting module (save process tree state)";
|
|
|
|
};
|
|
|
|
}
|