summary refs log tree commit diff
path: root/pkgs/os-specific/linux/dmtcp/default.nix
diff options
context:
space:
mode:
authorMarco Maggesi <maggesi@math.unifi.it>2010-02-04 15:41:45 +0000
committerMarco Maggesi <maggesi@math.unifi.it>2010-02-04 15:41:45 +0000
commit3ab915e1fcf1523ebab2ed87ae64cff0692a1666 (patch)
tree8331614183af385cb4e6c7c65686b8105c3f504f /pkgs/os-specific/linux/dmtcp/default.nix
parentc83ce140e125988428014f305a8690bf349a5c1c (diff)
downloadnixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.tar
nixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.tar.gz
nixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.tar.bz2
nixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.tar.lz
nixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.tar.xz
nixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.tar.zst
nixpkgs-3ab915e1fcf1523ebab2ed87ae64cff0692a1666.zip
Add new package pkgs/os-specific/linux/dmtcp/
svn path=/nixpkgs/trunk/; revision=19819
Diffstat (limited to 'pkgs/os-specific/linux/dmtcp/default.nix')
-rw-r--r--pkgs/os-specific/linux/dmtcp/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/dmtcp/default.nix b/pkgs/os-specific/linux/dmtcp/default.nix
new file mode 100644
index 00000000000..5c786f6172c
--- /dev/null
+++ b/pkgs/os-specific/linux/dmtcp/default.nix
@@ -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";
+  };
+}