Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
carthage: init at 0.34.0 #87199
Motivation for this change
Adding a package manager that is a popular tool when developing for Apple platforms.
I based it on how Swift itself is built - https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/swift/default.nix.
However another approach would be to just allow Swift Package Manager to fetch all dependencies from git repositories as in original code before patching. This would simplify the derivation but we would lose caching that Nix provides in this case. I am not sure how big of a problem it is, maybe it makes more sense to keep the derivation simple.