Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 1.1 kB view raw
1{ stdenv, fetchurl, pkgconfig, libtool, perl }: 2 3stdenv.mkDerivation rec { 4 pname = "ace"; 5 version = "6.5.7"; 6 7 src = fetchurl { 8 url = "http://download.dre.vanderbilt.edu/previous_versions/ACE-${version}.tar.bz2"; 9 sha256 = "0hvd7y3hs8r3r7qbllfaqrva3jrx5razcnwlws822k66v4r10cbx"; 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}