Unverified Commit 33eb787a authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #333268 from jstranik/quickfix-mac-build

quickfix: fix build on darwin
parents 5e1eb7ce 361ee3ed
Loading
Loading
Loading
Loading
+22 −5
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  autoconf,
  automake,
  libtool,
}:

stdenv.mkDerivation rec {
  pname = "quickfix";
  version = "1.15.1";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    owner = "quickfix";
    repo = "quickfix";
    rev = "v${version}";
    sha256 = "1fgpwgvyw992mbiawgza34427aakn5zrik3sjld0i924a9d17qwg";
  };
@@ -21,10 +29,18 @@ stdenv.mkDerivation rec {
  ];

  # autoreconfHook does not work
  nativeBuildInputs = [ autoconf automake libtool ];
  nativeBuildInputs = [
    autoconf
    automake
    libtool
  ];

  enableParallelBuilding = true;

  postPatch = ''
    substituteInPlace bootstrap --replace-fail glibtoolize libtoolize
  '';

  preConfigure = ''
    ./bootstrap
  '';
@@ -39,5 +55,6 @@ stdenv.mkDerivation rec {
    homepage = "http://www.quickfixengine.org";
    license = licenses.free; # similar to BSD 4-clause
    maintainers = with maintainers; [ bhipple ];
    broken = stdenv.isAarch64;
  };
}