@@ -0,0 +1,39 @@
1+{ mkDerivation, lib, fetchurl
2+, cmake
3+, qtbase
4+}:
5+
6+let
7+ version = "1.9.0";
8+in
9+
10+mkDerivation {
11+ pname = "kdsoap";
12+ inherit version;
13+ meta = {
14+ shortDescription = "A Qt-based client-side and server-side SOAP component";
15+ longDescription = ''
16+ KD Soap is a Qt-based client-side and server-side SOAP component.
17+
18+ It can be used to create client applications for web services and also
19+ provides the means to create web services without the need for any further
20+ component such as a dedicated web server.
21+ '';
22+ license = with lib.licenses; [ gpl2 gpl3 lgpl21 ];
23+ maintainers = [ lib.maintainers.ttuegel ];
24+ };
25+ src = fetchurl {
26+ url = "https://github.com/KDAB/KDSoap/releases/download/kdsoap-${version}/kdsoap-${version}.tar.gz";
27+ sha256 = "0a28k48cmagqxhaayyrqnxsx1zbvw4f06dgs16kl33xhbinn5fg3";
28+ };
29+ outputs = [ "out" "dev" ];
30+ nativeBuildInputs = [ cmake ];
31+ buildInputs = [ qtbase ];
32+ postInstall = ''
33+ moveToOutput bin/kdwsdl2cpp "$dev"
34+ sed -i "$out/lib/cmake/KDSoap/KDSoapTargets.cmake" \
35+ -e "/^ INTERFACE_INCLUDE_DIRECTORIES/ c INTERFACE_INCLUDE_DIRECTORIES \"$dev/include\""
36+ sed -i "$out/lib/cmake/KDSoap/KDSoapTargets-release.cmake" \
37+ -e "s@$out/bin@$dev/bin@"
38+ '';
39+}