9 stdenvNoCC.mkDerivation rec {
14 url = "https://github.com/realm/SwiftLint/releases/download/${version}/portable_swiftlint.zip";
15 hash = "sha256-rQcdWjbX9Ddt/pLX7Z9LrvizvedbdRMdwofPNPEDU6U=";
22 nativeBuildInputs = [ unzip ];
28 install -Dm755 swiftlint $out/bin/swiftlint
32 doInstallCheck = true;
33 nativeInstallCheckInputs = [ versionCheckHook ];
35 passthru.updateScript = nix-update-script { };
38 description = "A tool to enforce Swift style and conventions";
39 homepage = "https://realm.github.io/SwiftLint/";
40 license = lib.licenses.mit;
41 mainProgram = "swiftlint";
42 maintainers = with lib.maintainers; [
46 platforms = lib.platforms.darwin;
47 sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];