2010-08-17 16:53:34 +00:00
|
|
|
{ stdenv, fetchurl, kernel, perl, makeWrapper, autoconf, automake, libtool }:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-08-17 14:25:56 +00:00
|
|
|
name = "blcr-0.8.3-${kernel.version}";
|
2010-08-17 16:53:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-17 14:25:56 +00:00
|
|
|
url = https://ftg.lbl.gov/assets/projects/CheckpointRestart/downloads/blcr-0.8.3.tar.gz;
|
|
|
|
sha256 = "c8243c9a7a215d4fc4e8f2199045711cf711a6f2e0b39a94413478ffae110eac";
|
2010-08-17 16:53:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl makeWrapper autoconf automake libtool ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
configureFlagsArray=(
|
|
|
|
--with-linux=$(ls -d ${kernel}/lib/modules/*/build)
|
|
|
|
--with-kmod-dir=$out/lib/modules/$(cd ${kernel}/lib/modules; ls -d 2.6.*)
|
|
|
|
--with-system-map=${kernel}/System.map
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out/bin/"*
|
|
|
|
do
|
|
|
|
wrapProgram "$prog" --prefix LD_LIBRARY_PATH ":" "$out/lib"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Berkeley Lab Checkpoint/Restart for Linux (BLCR)";
|
2011-05-13 15:37:13 +00:00
|
|
|
homepage = https://ftg.lbl.gov/projects/CheckpointRestart/;
|
2010-08-17 16:53:34 +00:00
|
|
|
license = "GPL2";
|
|
|
|
};
|
|
|
|
}
|