mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
pkgs/os-specific/linux/blcr: update to version 0.8.2
svn path=/nixpkgs/trunk/; revision=21091
This commit is contained in:
parent
8840dd10fe
commit
5d94294dd5
50
pkgs/os-specific/linux/blcr/0.8.2.nix
Normal file
50
pkgs/os-specific/linux/blcr/0.8.2.nix
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{stdenv, fetchurl, kernel, perl, makeWrapper}:
|
||||||
|
|
||||||
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "0.8.2";
|
||||||
|
website = https://ftg.lbl.gov/CheckpointRestart;
|
||||||
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "blcr-${version}-${kernel.version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "${website}/downloads/blcr-${version}.tar.gz";
|
||||||
|
sha256 = "1ldvzrajljkm318z5ix1p27n0gmv7gqxij6ck7p5fz4ncdbb01x8";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./fixes.patch ];
|
||||||
|
|
||||||
|
buildInputs = [ perl makeWrapper ];
|
||||||
|
|
||||||
|
# this gives "configure: error: unrecognized option: `-d'"
|
||||||
|
/*
|
||||||
|
configureFlags = [
|
||||||
|
"--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"
|
||||||
|
];
|
||||||
|
*/
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
./configure --prefix=$out \
|
||||||
|
--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)";
|
||||||
|
homepage = website;
|
||||||
|
license = "GPL2";
|
||||||
|
};
|
||||||
|
}
|
112371
pkgs/os-specific/linux/blcr/fixes.patch
Normal file
112371
pkgs/os-specific/linux/blcr/fixes.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -6026,6 +6026,10 @@ let
|
|||||||
}
|
}
|
||||||
else null;
|
else null;
|
||||||
|
|
||||||
|
blcr = import ../os-specific/linux/blcr/0.8.2.nix {
|
||||||
|
inherit fetchurl stdenv kernel perl makeWrapper;
|
||||||
|
};
|
||||||
|
|
||||||
exmap = import ../os-specific/linux/exmap {
|
exmap = import ../os-specific/linux/exmap {
|
||||||
inherit fetchurl stdenv kernel boost pcre pkgconfig;
|
inherit fetchurl stdenv kernel boost pcre pkgconfig;
|
||||||
inherit (gtkLibs) gtkmm;
|
inherit (gtkLibs) gtkmm;
|
||||||
|
Loading…
Reference in New Issue
Block a user