Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / kdsoap / default.nix
blob80eb6d68320751f64dcb23e7c705021a7fecfa53
1 { mkDerivation
2 , lib
3 , fetchurl
4 , cmake
5 , qtbase
6 }:
8 mkDerivation rec {
9   pname = "kdsoap";
10   version = "2.1.1";
12   src = fetchurl {
13     url = "https://github.com/KDAB/KDSoap/releases/download/kdsoap-${version}/kdsoap-${version}.tar.gz";
14     sha256 = "sha256-rtV/ayAN33YvXSiY9+kijdBwCIHESRrv5ABvf6X1xic=";
15   };
17   outputs = [ "out" "dev" ];
19   nativeBuildInputs = [ cmake ];
21   buildInputs = [ qtbase ];
23   postInstall = ''
24     moveToOutput bin/kdwsdl2cpp "$dev"
25     sed -i "$out/lib/cmake/KDSoap/KDSoapTargets.cmake" \
26         -e "/^  INTERFACE_INCLUDE_DIRECTORIES/ c   INTERFACE_INCLUDE_DIRECTORIES \"$dev/include\""
27     sed -i "$out/lib/cmake/KDSoap/KDSoapTargets-release.cmake" \
28         -e "s@$out/bin@$dev/bin@"
29   '';
31   meta = with lib; {
32     description = "A Qt-based client-side and server-side SOAP component";
33     longDescription = ''
34       KD Soap is a Qt-based client-side and server-side SOAP component.
36       It can be used to create client applications for web services and also
37       provides the means to create web services without the need for any further
38       component such as a dedicated web server.
39     '';
40     license = with licenses; [ gpl2 gpl3 lgpl21 ];
41     maintainers = [ maintainers.ttuegel ];
42   };