summary refs log tree commit diff
path: root/pkgs/os-specific/linux/dmtcp
diff options
context:
space:
mode:
authorbbarker <beb82@cornell.edu>2015-01-20 15:20:13 +0100
committerVladimír Čunát <vcunat@gmail.com>2015-01-20 15:25:39 +0100
commitd013149b5953691247a46e0e8393c51fc9185de9 (patch)
tree07881f1d5abe82691b112d4f02d4f5a937005177 /pkgs/os-specific/linux/dmtcp
parentf484050a81557ae256959d4c70b65a40269baf96 (diff)
downloadnixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.tar
nixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.tar.gz
nixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.tar.bz2
nixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.tar.lz
nixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.tar.xz
nixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.tar.zst
nixpkgs-d013149b5953691247a46e0e8393c51fc9185de9.zip
dmtcp: major update (close #5229)
@vcunat: correct location of patched files, use license attribute,
remove file with the older version.
Diffstat (limited to 'pkgs/os-specific/linux/dmtcp')
-rw-r--r--pkgs/os-specific/linux/dmtcp/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/dmtcp/default.nix b/pkgs/os-specific/linux/dmtcp/default.nix
index c863be14461..fea41affe2c 100644
--- a/pkgs/os-specific/linux/dmtcp/default.nix
+++ b/pkgs/os-specific/linux/dmtcp/default.nix
@@ -4,28 +4,30 @@
 stdenv.mkDerivation rec {
   name = "dmtcp-${version}";
 
-  version = "1.2.0";
+  version = "2.3.1";
 
   buildInputs = [ perl python ];
 
   src = fetchurl {
-    url = "mirror://sourceforge/dmtcp/dmtcp_${version}.tar.gz";
-    sha256 = "1pw3m4l1xf887xagd0yrrnb35s372j0kvjziyy3gmx9fxpga1jzb";
+    url = "mirror://sourceforge/dmtcp/dmtcp-${version}.tar.gz";
+    sha256 = "1f83ae112e102d4fbf69dded0dfaa6daeb60c4c0c569297553785a876e95ba15";
   };
 
   preConfigure = ''
-    substituteInPlace dmtcp/src/dmtcp_coordinator.cpp \
-      --replace /bin/bash /bin/sh
-    substituteInPlace utils/gdb-add-symbol-file \
-      --replace /bin/bash /bin/sh
+    substituteInPlace src/dmtcp_coordinator.cpp \
+      --replace /bin/bash ${stdenv.shell}
+    substituteInPlace util/gdb-add-symbol-file \
+      --replace /bin/bash ${stdenv.shell}
     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)
+      --replace /usr/bin/python $(type -p python) \
+      --replace "os.environ['USER']" "\"nixbld1\"" \
+      --replace "os.getenv('USER')" "\"nixbld1\""
   '';
 
-  doCheck = true;
+  doCheck = false;
 
   meta = {
     description = "Distributed MultiThreaded Checkpointing";
@@ -36,6 +38,6 @@ stdenv.mkDerivation rec {
       not modify the user's program or the operating system.
     '';
     homepage = http://dmtcp.sourceforge.net/;
-    license = "LGPL";
+    license = stdenv.lib.licenses.lgpl3Plus; # most files seem this or LGPL-2.1+
   };
 }