2010-02-04 16:41:45 +01:00
|
|
|
{stdenv, fetchurl, perl, python}:
|
2010-09-08 13:40:32 +02:00
|
|
|
# Perl and Python required by the test suite.
|
2010-02-04 16:41:45 +01:00
|
|
|
|
2010-09-08 13:40:32 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dmtcp-${version}";
|
2010-02-04 16:41:45 +01:00
|
|
|
|
2011-02-22 20:00:45 +01:00
|
|
|
version = "1.2.0";
|
2010-02-04 16:41:45 +01:00
|
|
|
|
2010-09-08 13:40:32 +02:00
|
|
|
buildInputs = [ perl python ];
|
2010-02-04 16:41:45 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-09-08 13:40:32 +02:00
|
|
|
url = "mirror://sourceforge/dmtcp/dmtcp_${version}.tar.gz";
|
2011-02-22 20:00:45 +01:00
|
|
|
sha256 = "1pw3m4l1xf887xagd0yrrnb35s372j0kvjziyy3gmx9fxpga1jzb";
|
2010-02-04 16:41:45 +01:00
|
|
|
};
|
|
|
|
|
2011-02-22 20:00:45 +01:00
|
|
|
preConfigure = ''
|
2010-02-04 16:41:45 +01:00
|
|
|
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)
|
|
|
|
'';
|
|
|
|
|
2010-09-08 13:40:32 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2010-02-04 16:41:45 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|