{"id":20064108,"url":"https://github.com/i10416/grpc-swift-flake","last_synced_at":"2026-05-06T14:38:17.009Z","repository":{"id":239530803,"uuid":"799766858","full_name":"i10416/grpc-swift-flake","owner":"i10416","description":" grpc-swift wrapped by Nix flake","archived":false,"fork":false,"pushed_at":"2024-12-19T12:36:19.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T22:43:51.168Z","etag":null,"topics":["grpc","nix","swift"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i10416.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-13T04:00:05.000Z","updated_at":"2024-12-19T12:35:31.000Z","dependencies_parsed_at":"2024-05-13T06:27:37.205Z","dependency_job_id":"15a278d1-45eb-456c-a305-b8c78ec38a66","html_url":"https://github.com/i10416/grpc-swift-flake","commit_stats":null,"previous_names":["i10416/grpc-swift-flake"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fgrpc-swift-flake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fgrpc-swift-flake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fgrpc-swift-flake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i10416%2Fgrpc-swift-flake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i10416","download_url":"https://codeload.github.com/i10416/grpc-swift-flake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241494142,"owners_count":19971870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grpc","nix","swift"],"created_at":"2024-11-13T13:44:51.053Z","updated_at":"2026-05-06T14:38:11.972Z","avatar_url":"https://github.com/i10416.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"## grpc-swift flake\n\n## Try It Out\n\n```sh\nnix develop github:i10416/grpc-swift-flake\n```\n\n## About\n\nThis is a repository for grpc-swift wrapped by Nix flake.\n\nThis flake provides `protoc-gen-swift` and `protoc-gen-grpc-swift` packages for each system.\n\n```nix\n{\n  # ...\n  inputs.grpc-swift.url = \"github:i10416/grpc-swift-flake\";\n  inputs.flake-utils.url = \"github:numtide/flake-utils\";\n  # ...\n  outputs = {self,flake-utils, grpc-swift, ...}:\n    flake-utils.lib.eachDefaultSystem (system:\n      {\n         devShell = pkgs.mkShell {\n          name = \"...\";\n          buildInputs = [\n            grpc-swift.packages.${system}.protoc-gen-swift\n            grpc-swift.packages.${system}.protoc-gen-grpc-swift\n          ]\n         }\n      }\n    )\n}\n```\n\n## Develop\n\n### build\n\n`nix build .` builds `protoc-gen-swift` by default. Run `nix build .#protoc-gen-swift` and `nix build .#protoc-gen-grpc-swift` to build each package.\n\nDerivations under `protoc-gen-swift/` and `protoc-gen-grpc-swift/` can be built by `nix-build` command. They have default grpc-swift source, but they are supposed to be used for debug purpose.\n\n```sh\ncd protoc-gen-swift\nnix-build .\n```\n\n### swiftpm2nix\n\nFiles under grpc-swift-src/swiftpm2nix are generated by the following steps.\n\n```sh\ngit clone git@github.com:grpc/grpc-swift.git -b 1.23.0 grpc-swift-src\ncd grpc-swift-src\nnix-shell -p swift swiftpm swiftpm2nix\nswift package resolve\nswiftpm2nix\n# Move files under grpc-swift-src/nix to grpc-swift/swiftpm2nix.\n```\n\nNOTE:\nThese steps are taken from https://git.ri.se/lars.rasmusson/nixpkgs/-/blob/master/doc/languages-frameworks/swift.section.md.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi10416%2Fgrpc-swift-flake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi10416%2Fgrpc-swift-flake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi10416%2Fgrpc-swift-flake/lists"}