From 17b7d3ce34676a82870e75987e29163f513aee22 Mon Sep 17 00:00:00 2001 From: maggesi Date: Sat, 13 Feb 2010 11:02:08 +0000 Subject: [PATCH] Add package dmtcp_devel git-svn-id: https://svn.nixos.org/repos/nix/nixpkgs/trunk@19972 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb --- pkgs/os-specific/linux/dmtcp/devel.nix | 45 ++++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 49 insertions(+) create mode 100644 pkgs/os-specific/linux/dmtcp/devel.nix diff --git a/pkgs/os-specific/linux/dmtcp/devel.nix b/pkgs/os-specific/linux/dmtcp/devel.nix new file mode 100644 index 000000000..9fb3274a4 --- /dev/null +++ b/pkgs/os-specific/linux/dmtcp/devel.nix @@ -0,0 +1,45 @@ +{stdenv, fetchsvn, perl, python}: + +# Perl and python are needed in order to run the test suite. + +let + revision = "489"; +in + +stdenv.mkDerivation { + name = "dmtcp-devel-${revision}"; + + src = fetchsvn { + url = https://dmtcp.svn.sourceforge.net/svnroot/dmtcp/trunk; + rev = revision; + sha256 = "c21d38888553a50f401e1e49dec646b574f2014121e1186949f909c51e4911ed"; + }; + + 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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ffe6a691..f1dcba4af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5694,6 +5694,10 @@ let inherit fetchurl stdenv perl python; }; + dmtcp_devel = import ../os-specific/linux/dmtcp/devel.nix { + inherit fetchsvn 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. -- 2.11.4.GIT