mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
8db5491040
svn path=/nixpkgs/trunk/; revision=28647
36 lines
919 B
Nix
36 lines
919 B
Nix
{ stdenv, fetchurl, kernel, perl, makeWrapper }:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "blcr-0.8.3-${kernel.version}";
|
|
|
|
src = fetchurl {
|
|
url = https://ftg.lbl.gov/assets/projects/CheckpointRestart/downloads/blcr-0.8.3.tar.gz;
|
|
sha256 = "c8243c9a7a215d4fc4e8f2199045711cf711a6f2e0b39a94413478ffae110eac";
|
|
};
|
|
|
|
buildInputs = [ perl makeWrapper ];
|
|
|
|
preConfigure = ''
|
|
configureFlagsArray=(
|
|
--with-linux=${kernel}/lib/modules/${kernel.version}/build
|
|
--with-kmod-dir=$out/lib/modules/${kernel.version}
|
|
--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)";
|
|
homepage = https://ftg.lbl.gov/projects/CheckpointRestart/;
|
|
license = "GPL2";
|
|
};
|
|
}
|