1 { lib, stdenv, fetchFromGitHub, bash, perl, python3 }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2022-02-28";
7 src = fetchFromGitHub {
10 rev = "133687764c6742906006a1d247e3b83cd860fa1d";
11 hash = "sha256-9Vr8IhoeATCfyt7Lp7kYe/7e87mFX9KMNGTqxJgIztE=";
14 dontDisableStatic = true;
16 patches = [ ./ld-linux-so-buffer-size.patch ];
21 substituteInPlace configure \
22 --replace '#define ELF_INTERPRETER "$interp"' \
23 "#define ELF_INTERPRETER \"$(cat $NIX_CC/nix-support/dynamic-linker)\""
24 substituteInPlace src/restartscript.cpp \
25 --replace /bin/bash ${stdenv.shell}
26 substituteInPlace util/dmtcp_restart_wrapper.sh \
27 --replace /bin/bash ${stdenv.shell}
28 substituteInPlace test/autotest.py \
29 --replace /bin/bash ${bash}/bin/bash \
30 --replace /usr/bin/perl ${perl}/bin/perl \
31 --replace /usr/bin/python ${python3.interpreter} \
32 --replace "os.environ['USER']" "\"nixbld1\"" \
33 --replace "os.getenv('USER')" "\"nixbld1\""
37 description = "Distributed MultiThreaded Checkpointing";
39 DMTCP (Distributed MultiThreaded Checkpointing) is a tool to
40 transparently checkpointing the state of an arbitrary group of
41 programs spread across many machines and connected by sockets. It does
42 not modify the user's program or the operating system.
44 homepage = "http://dmtcp.sourceforge.net/";
45 license = licenses.lgpl3Plus; # most files seem this or LGPL-2.1+
46 platforms = intersectLists platforms.linux platforms.x86; # broken on ARM and Darwin