Skip to content

Commit

Permalink
dmtcp: 2.5.0 -> 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Sep 8, 2017
1 parent 3d32500 commit 04f456e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkgs/os-specific/linux/dmtcp/default.nix
@@ -1,19 +1,21 @@
{ stdenv, fetchFromGitHub }:
{ stdenv, fetchFromGitHub, bash, perl, python }:

stdenv.mkDerivation rec {
name = "dmtcp-${version}";
version = "2.5.0";
version = "2.5.1";

src = fetchFromGitHub {
owner = "dmtcp";
repo = "dmtcp";
rev = version;
sha256 = "08l774i8yp41j6kmzhj7x13475m5kdfhn678ydpm5cbg4l3dda3c";
sha256 = "1z6cc7avs2sj8csf7rapf7nbw0giva6xpj0cshv7p9s643y8yxmi";
};

dontDisableStatic = true;

postPatch = ''
patchShebangs .
substituteInPlace configure \
--replace '#define ELF_INTERPRETER "$interp"' \
"#define ELF_INTERPRETER \"$(cat $NIX_CC/nix-support/dynamic-linker)\""
Expand All @@ -25,16 +27,13 @@ stdenv.mkDerivation rec {
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 /bin/bash ${bash}/bin/bash \
--replace /usr/bin/perl ${perl}/bin/perl \
--replace /usr/bin/python ${python}/bin/python \
--replace "os.environ['USER']" "\"nixbld1\"" \
--replace "os.getenv('USER')" "\"nixbld1\""
'';

doCheck = false;

meta = {
description = "Distributed MultiThreaded Checkpointing";
longDescription = ''
Expand Down

0 comments on commit 04f456e

Please sign in to comment.