lol
1{ lib, stdenv, fetchurl, autoreconfHook, unzip, m4, bison, flex, openssl, zlib }:
2
3let
4 majorVersion = "2.8";
5
6in stdenv.mkDerivation rec {
7 pname = "gsoap";
8 version = "${majorVersion}.108";
9
10 src = fetchurl {
11 url = "mirror://sourceforge/project/gsoap2/gsoap-${majorVersion}/gsoap_${version}.zip";
12 sha256 = "0x58bwlclk7frv03kg8bp0pm7zl784samvbzskrnr7dl5v866nvl";
13 };
14
15 buildInputs = [ openssl zlib ];
16 nativeBuildInputs = [ autoreconfHook bison flex m4 unzip ];
17 # Parallel building doesn't work as of 2.8.49
18 enableParallelBuilding = false;
19
20 # Future versions of automake require subdir-objects if the source is structured this way
21 # As of 2.8.49 (maybe earlier) this is needed to silence warnings
22 prePatch = ''
23 substituteInPlace configure.ac \
24 --replace 'AM_INIT_AUTOMAKE([foreign])' 'AM_INIT_AUTOMAKE([foreign subdir-objects])'
25 '';
26
27 meta = with lib; {
28 description = "C/C++ toolkit for SOAP web services and XML-based applications";
29 homepage = "http://www.cs.fsu.edu/~engelen/soap.html";
30 # gsoap is dual/triple licensed (see homepage for details):
31 # 1. gSOAP Public License 1.3 (based on Mozilla Public License 1.1).
32 # Components NOT covered by the gSOAP Public License are:
33 # - wsdl2h tool and its source code output,
34 # - soapcpp2 tool and its source code output,
35 # - UDDI code,
36 # - the webserver example code in gsoap/samples/webserver,
37 # - and several example applications in the gsoap/samples directory.
38 # 2. GPLv2 covers all of the software
39 # 3. Proprietary commercial software development license (removes GPL
40 # restrictions)
41 license = licenses.gpl2;
42 platforms = platforms.linux;
43 maintainers = with maintainers; [ bjornfor ];
44 };
45}