Add new package pkgs/os-specific/linux/dmtcp/

svn path=/nixpkgs/trunk/; revision=19819
This commit is contained in:
Marco Maggesi 2010-02-04 15:41:45 +00:00
parent c83ce140e1
commit 3ab915e1fc
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{stdenv, fetchurl, perl, python}:
# Perl and python are needed in order to run the test suite.
let
pname = "dmtcp";
version = "1.1.3";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.gz";
sha256 = "0lx455hvxqa9rj83nms9mi6v5klswsrgj8hxhidhi9i2qkx88158";
};
buildInputs = [ perl python ];
doCheck = true;
preCheck = ''
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)
'';
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";
};
}

View File

@ -5467,6 +5467,10 @@ let
inherit fetchurl stdenv;
};
dmtcp = import ../os-specific/linux/dmtcp {
inherit fetchurl stdenv perl python;
};
dietlibc = import ../os-specific/linux/dietlibc {
inherit fetchurl glibc;
# Dietlibc 0.30 doesn't compile on PPC with GCC 4.1, bus GCC 3.4 works.