lol

Merge pull request #105843 from HectorAE/quickfix-init

authored by

Sandro and committed by
GitHub
6e7846bc c0e177d0

+110
+43
pkgs/development/libraries/quickfix/default.nix
··· 1 + { stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "quickfix"; 5 + version = "1.15.1"; 6 + 7 + src = fetchFromGitHub { 8 + owner = pname; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "1fgpwgvyw992mbiawgza34427aakn5zrik3sjld0i924a9d17qwg"; 12 + }; 13 + 14 + patches = [ 15 + # Improved C++17 compatibility 16 + (fetchpatch { 17 + url = "https://github.com/quickfix/quickfix/commit/a46708090444826c5f46a5dbf2ba4b069b413c58.diff"; 18 + sha256 = "1wlk4j0wmck0zm6a70g3nrnq8fz0id7wnyxn81f7w048061ldhyd"; 19 + }) 20 + ./disableUnitTests.patch 21 + ]; 22 + 23 + # autoreconfHook does not work 24 + nativeBuildInputs = [ autoconf automake libtool ]; 25 + 26 + enableParallelBuilding = true; 27 + 28 + preConfigure = '' 29 + ./bootstrap 30 + ''; 31 + 32 + # More hacking out of the unittests 33 + preBuild = '' 34 + substituteInPlace Makefile --replace 'UnitTest++' ' ' 35 + ''; 36 + 37 + meta = with stdenv.lib; { 38 + description = "QuickFIX C++ Fix Engine Library"; 39 + homepage = "http://www.quickfixengine.org"; 40 + license = licenses.free; # similar to BSD 4-clause 41 + maintainers = with maintainers; [ bhipple ]; 42 + }; 43 + }
+65
pkgs/development/libraries/quickfix/disableUnitTests.patch
··· 1 + diff -u -r source-baseline-patchPhase/configure.ac source/configure.ac 2 + --- source-baseline-patchPhase/configure.ac 1970-01-01 00:00:01.000000000 +0000 3 + +++ source/configure.ac 2021-01-12 22:49:28.948861699 +0000 4 + @@ -43,7 +43,7 @@ 5 + 6 + AC_CANONICAL_HOST 7 + 8 + -build_no_unit_test = no 9 + +build_no_unit_test = yes 10 + 11 + # Detect the target system 12 + case "${host_os}" in 13 + @@ -344,8 +344,6 @@ 14 + examples/Makefile 15 + examples/executor/Makefile 16 + examples/executor/C++/Makefile 17 + - examples/ordermatch/Makefile 18 + - examples/ordermatch/test/Makefile 19 + examples/tradeclient/Makefile 20 + examples/tradeclientgui/Makefile 21 + examples/tradeclientgui/banzai/Makefile 22 + diff -u -r source-baseline-patchPhase/examples/Makefile.am source/examples/Makefile.am 23 + --- source-baseline-patchPhase/examples/Makefile.am 1970-01-01 00:00:01.000000000 +0000 24 + +++ source/examples/Makefile.am 2021-01-12 22:51:55.782568550 +0000 25 + @@ -1,3 +1,3 @@ 26 + -SUBDIRS = executor ordermatch tradeclient tradeclientgui 27 + +SUBDIRS = executor tradeclient tradeclientgui 28 + 29 + -EXTRA_DIST = examples.dsw configure configure.in bootstrap Makefile.am 30 + \ No newline at end of file 31 + +EXTRA_DIST = examples.dsw configure configure.in bootstrap Makefile.am 32 + diff -u -r source-baseline-patchPhase/src/Makefile.am source/src/Makefile.am 33 + --- source-baseline-patchPhase/src/Makefile.am 1970-01-01 00:00:01.000000000 +0000 34 + +++ source/src/Makefile.am 2021-01-12 22:53:02.593432380 +0000 35 + @@ -15,27 +15,23 @@ 36 + if NO_UNIT_TEST 37 + noinst_PROGRAMS = 38 + else 39 + -noinst_PROGRAMS = at ut pt 40 + +noinst_PROGRAMS = at pt 41 + endif 42 + 43 + at_SOURCES = at.cpp at_application.h 44 + -ut_SOURCES = ut.cpp 45 + pt_SOURCES = pt.cpp 46 + 47 + EXTRA_DIST = getopt.c getopt-repl.h 48 + 49 + at_LDADD = C++/libquickfix.la 50 + -ut_LDADD = C++/test/libquickfixcpptest.la C++/libquickfix.la 51 + pt_LDADD = C++/libquickfix.la 52 + 53 + INCLUDES =-IC++ -IC++/test -I../UnitTest++/src 54 + -LDFLAGS =-L../UnitTest++ -lUnitTest++ 55 + + 56 + 57 + all-local: 58 + - rm -f ../test/ut ../test/pt ../test/at ../test/ut_debug 59 + - ln -s ../src/ut ../test/ut 60 + + rm -rf ../test/pt ../test/at ../test/ut_debug 61 + ln -s ../src/pt ../test/pt 62 + ln -s ../src/at ../test/at 63 + - ln -s ../src/.libs/ut ../test/ut_debug 64 + 65 + clean-local:
+2
pkgs/top-level/all-packages.nix
··· 7036 7036 7037 7037 qtikz = libsForQt5.callPackage ../applications/graphics/ktikz { }; 7038 7038 7039 + quickfix = callPackage ../development/libraries/quickfix { }; 7040 + 7039 7041 quickjs = callPackage ../development/interpreters/quickjs { }; 7040 7042 7041 7043 quickserve = callPackage ../tools/networking/quickserve { };