13 swift.stdenv.mkDerivation rec {
14 pname = "swiftformat";
17 src = fetchFromGitHub {
18 owner = "nicklockwood";
21 sha256 = "sha256-AZAQSwmGNHN6ykh9ufeQLC1dEXvTt32X24MPTDh6bI8=";
30 install -D "$(swiftpmBinPath)/swiftformat" $out/bin/swiftformat
33 nativeInstallCheckInputs = [
36 doInstallCheck = true;
39 updateScript = nix-update-script { };
43 description = "Code formatting and linting tool for Swift";
44 homepage = "https://github.com/nicklockwood/SwiftFormat";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [
50 platforms = lib.platforms.linux ++ lib.platforms.darwin;