
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19
.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
cmake,
|
|
qtbase,
|
|
wrapQtAppsHook,
|
|
}:
|
|
|
|
let
|
|
isQt6 = lib.versions.major qtbase.version == "6";
|
|
cmakeName = if isQt6 then "KDSoap-qt6" else "KDSoap";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "kdsoap";
|
|
version = "2.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/KDAB/KDSoap/releases/download/kdsoap-${version}/kdsoap-${version}.tar.gz";
|
|
sha256 = "sha256-2e8RlIRCGXyfpEvW+63IQrcoCmDfxAV3r2b97WN681Y=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
cmakeFlags = [ (lib.cmakeBool "KDSoap_QT6" isQt6) ];
|
|
|
|
postInstall = ''
|
|
moveToOutput bin/kdwsdl2cpp* "$dev"
|
|
substituteInPlace "$out/lib/cmake/${cmakeName}/KDSoapTargets-release.cmake" \
|
|
--replace $out/bin $dev/bin
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Qt-based client-side and server-side SOAP component";
|
|
longDescription = ''
|
|
KD Soap is a Qt-based client-side and server-side SOAP component.
|
|
|
|
It can be used to create client applications for web services and also
|
|
provides the means to create web services without the need for any further
|
|
component such as a dedicated web server.
|
|
'';
|
|
license = with licenses; [
|
|
gpl2
|
|
gpl3
|
|
lgpl21
|
|
];
|
|
maintainers = [ maintainers.ttuegel ];
|
|
};
|
|
}
|