2011-08-17 17:32:20 +01:00
|
|
|
{ stdenv, fetchurl, kernel, perl }:
|
2010-08-17 17:53:34 +01:00
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-08-17 15:25:56 +01:00
|
|
|
name = "blcr-0.8.3-${kernel.version}";
|
2010-08-17 17:53:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-08-17 15:25:56 +01:00
|
|
|
url = https://ftg.lbl.gov/assets/projects/CheckpointRestart/downloads/blcr-0.8.3.tar.gz;
|
|
|
|
sha256 = "c8243c9a7a215d4fc4e8f2199045711cf711a6f2e0b39a94413478ffae110eac";
|
2010-08-17 17:53:34 +01:00
|
|
|
};
|
|
|
|
|
2011-08-17 17:32:20 +01:00
|
|
|
buildInputs = [ perl ];
|
2010-08-17 17:53:34 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
2011-08-17 17:22:20 +01:00
|
|
|
--with-linux=${kernel}/lib/modules/${kernel.version}/build
|
|
|
|
--with-kmod-dir=$out/lib/modules/${kernel.version}
|
2010-08-17 17:53:34 +01:00
|
|
|
--with-system-map=${kernel}/System.map
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Berkeley Lab Checkpoint/Restart for Linux (BLCR)";
|
2011-05-13 16:37:13 +01:00
|
|
|
homepage = https://ftg.lbl.gov/projects/CheckpointRestart/;
|
2010-08-17 17:53:34 +01:00
|
|
|
license = "GPL2";
|
|
|
|
};
|
|
|
|
}
|