traefik: add djds as maintainer (#377217)
[NixPkgs.git] / pkgs / by-name / ac / ace / package.nix
blobf3c0ab54164ea879cf6e3393166b2438fcc0d397
2   lib,
3   stdenv,
4   fetchurl,
5   pkg-config,
6   libtool,
7   perl,
8 }:
10 stdenv.mkDerivation rec {
11   pname = "ace";
12   version = "7.0.11";
14   src = fetchurl {
15     url = "https://download.dre.vanderbilt.edu/previous_versions/ACE-${version}.tar.bz2";
16     sha256 = "sha256-r+LRiu/u1qMcbrjkSr8ErnemX6zvhgvc5cLWu8AQhww=";
17   };
19   enableParallelBuilding = true;
21   nativeBuildInputs = [
22     pkg-config
23     libtool
24   ];
25   buildInputs = [ perl ];
27   env.NIX_CFLAGS_COMPILE = toString [
28     "-Wno-error=format-security"
29   ];
31   postPatch = ''
32     patchShebangs ./MPC/prj_install.pl
33   '';
35   preConfigure = ''
36     export INSTALL_PREFIX=$out
37     export ACE_ROOT=$(pwd)
38     export LD_LIBRARY_PATH="$ACE_ROOT/ace:$ACE_ROOT/lib"
39     echo '#include "ace/config-linux.h"' > ace/config.h
40     echo 'include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU'\
41     > include/makeinclude/platform_macros.GNU
42   '';
44   meta = with lib; {
45     homepage = "https://www.dre.vanderbilt.edu/~schmidt/ACE.html";
46     description = "ADAPTIVE Communication Environment";
47     mainProgram = "ace_gperf";
48     license = licenses.doc;
49     maintainers = with maintainers; [ nico202 ];
50     platforms = platforms.linux;
51   };