1{stdenv, fetchurl, perl, python}:
2# Perl and Python required by the test suite.
3
4stdenv.mkDerivation rec {
5 name = "dmtcp-${version}";
6
7 version = "2.3.1";
8
9 buildInputs = [ perl python ];
10
11 src = fetchurl {
12 url = "mirror://sourceforge/dmtcp/dmtcp-${version}.tar.gz";
13 sha256 = "1f83ae112e102d4fbf69dded0dfaa6daeb60c4c0c569297553785a876e95ba15";
14 };
15
16 preConfigure = ''
17 substituteInPlace src/dmtcp_coordinator.cpp \
18 --replace /bin/bash ${stdenv.shell}
19 substituteInPlace util/gdb-add-symbol-file \
20 --replace /bin/bash ${stdenv.shell}
21 substituteInPlace test/autotest.py \
22 --replace /usr/bin/env $(type -p env) \
23 --replace /bin/bash $(type -p bash) \
24 --replace /usr/bin/perl $(type -p perl) \
25 --replace /usr/bin/python $(type -p python) \
26 --replace "os.environ['USER']" "\"nixbld1\"" \
27 --replace "os.getenv('USER')" "\"nixbld1\""
28 '';
29
30 doCheck = false;
31
32 meta = {
33 description = "Distributed MultiThreaded Checkpointing";
34 longDescription = ''
35 DMTCP (Distributed MultiThreaded Checkpointing) is a tool to
36 transparently checkpointing the state of an arbitrary group of
37 programs spread across many machines and connected by sockets. It does
38 not modify the user's program or the operating system.
39 '';
40 homepage = http://dmtcp.sourceforge.net/;
41 license = stdenv.lib.licenses.lgpl3Plus; # most files seem this or LGPL-2.1+
42 };
43}