Updated nixkpkgs/pkgs/os-specific/linux/dmtcp/devel.nix
[nixpkgs-libre.git] / pkgs / os-specific / linux / dmtcp / devel.nix
blob44135b29c353ab5183eb24ceaf68f619cc0da33e
1 {stdenv, fetchsvn, perl, python}:
3 # Perl and python are needed in order to run the test suite.
5 let
6   revision = "495";
7 in
9 stdenv.mkDerivation {
10   name = "dmtcp-devel-${revision}";
12   src = fetchsvn {
13     url = https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk;
14     rev = revision;
15     sha256 = "25991cc079942c51fc3cf279b24ef481810cfa0305c8a92f215711d4308a40f7";
16   };
18   buildInputs = [ perl python ];
20   doCheck = true;
22   preCheck = ''
23     substituteInPlace dmtcp/src/dmtcp_coordinator.cpp \
24       --replace /bin/bash /bin/sh
25     substituteInPlace utils/gdb-add-symbol-file \
26       --replace /bin/bash /bin/sh
27     substituteInPlace test/autotest.py \
28       --replace /usr/bin/env $(type -p env) \
29       --replace /bin/bash $(type -p bash) \
30       --replace /usr/bin/perl $(type -p perl) \
31       --replace /usr/bin/python $(type -p python)
32   '';
34   meta = {
35     description = "Distributed MultiThreaded Checkpointing";
36     longDescription = ''
37       DMTCP (Distributed MultiThreaded Checkpointing) is a tool to
38       transparently checkpointing the state of an arbitrary group of
39       programs spread across many machines and connected by sockets. It does
40       not modify the user's program or the operating system.
41     '';
42     homepage = http://dmtcp.sourceforge.net/;
43     license = "LGPL";
44   };