2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool }:
|
2020-12-04 02:28:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "quickfix";
|
|
|
|
version = "1.15.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fgpwgvyw992mbiawgza34427aakn5zrik3sjld0i924a9d17qwg";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Improved C++17 compatibility
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/quickfix/quickfix/commit/a46708090444826c5f46a5dbf2ba4b069b413c58.diff";
|
|
|
|
sha256 = "1wlk4j0wmck0zm6a70g3nrnq8fz0id7wnyxn81f7w048061ldhyd";
|
|
|
|
})
|
|
|
|
./disableUnitTests.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
# autoreconfHook does not work
|
|
|
|
nativeBuildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
|
|
|
# More hacking out of the unittests
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace Makefile --replace 'UnitTest++' ' '
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-12-04 02:28:49 +00:00
|
|
|
description = "QuickFIX C++ Fix Engine Library";
|
|
|
|
homepage = "http://www.quickfixengine.org";
|
|
|
|
license = licenses.free; # similar to BSD 4-clause
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
|
|
|
};
|
|
|
|
}
|