1{ stdenv, fetchurl, pkgconfig, libtool, perl }:
2
3stdenv.mkDerivation rec {
4 name = "ace-${version}";
5 version = "6.4.6";
6
7 src = fetchurl {
8 url = "http://download.dre.vanderbilt.edu/previous_versions/ACE-${version}.tar.bz2";
9 sha256 = "0xvdwk2505s615fgsy6g33ncxx70vszqspx0bg6lm8hfd3hb4qyj";
10 };
11
12 enableParallelBuilding = true;
13
14 nativeBuildInputs = [ pkgconfig libtool ];
15 buildInputs = [ perl ];
16
17 patchPhase = ''substituteInPlace ./MPC/prj_install.pl \
18 --replace /usr/bin/perl "${perl}/bin/perl"'';
19
20 preConfigure = ''
21 export INSTALL_PREFIX=$out
22 export ACE_ROOT=$(pwd)
23 export LD_LIBRARY_PATH="$ACE_ROOT/ace:$ACE_ROOT/lib"
24 echo '#include "ace/config-linux.h"' > ace/config.h
25 echo 'include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU'\
26 > include/makeinclude/platform_macros.GNU
27 '';
28
29 meta = with stdenv.lib; {
30 description = "ADAPTIVE Communication Environment";
31 homepage = http://www.dre.vanderbilt.edu/~schmidt/ACE.html;
32 license = licenses.doc;
33 platforms = platforms.linux;
34 maintainers = [ maintainers.nico202 ];
35 };
36}