nixpkgs/pkgs/os-specific/linux/dmtcp/default.nix
Marco Maggesi a280a31f56 Add a patch to dmtcp to allow the restart of checkpointed programs with a different uid.
(This is required in order to generate hol_light_binaries).

Also do a bit of cleanup.

svn path=/nixpkgs/trunk/; revision=23684
2010-09-08 11:40:32 +00:00

44 lines
1.3 KiB
Nix

{stdenv, fetchurl, perl, python}:
# Perl and Python required by the test suite.
stdenv.mkDerivation rec {
name = "dmtcp-${version}";
version = "1.1.8";
buildInputs = [ perl python ];
src = fetchurl {
url = "mirror://sourceforge/dmtcp/dmtcp_${version}.tar.gz";
sha256 = "05klyml5maw3f5rxl3i20fqyvpmx69bh09h7a48y19q3r4nqd8f2";
};
patches = [ ./dont_check_uid.patch ];
postPatch = ''
substituteInPlace dmtcp/src/dmtcp_coordinator.cpp \
--replace /bin/bash /bin/sh
substituteInPlace utils/gdb-add-symbol-file \
--replace /bin/bash /bin/sh
substituteInPlace test/autotest.py \
--replace /usr/bin/env $(type -p env) \
--replace /bin/bash $(type -p bash) \
--replace /usr/bin/perl $(type -p perl) \
--replace /usr/bin/python $(type -p python)
'';
doCheck = true;
meta = {
description = "Distributed MultiThreaded Checkpointing";
longDescription = ''
DMTCP (Distributed MultiThreaded Checkpointing) is a tool to
transparently checkpointing the state of an arbitrary group of
programs spread across many machines and connected by sockets. It does
not modify the user's program or the operating system.
'';
homepage = http://dmtcp.sourceforge.net/;
license = "LGPL";
};
}