Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dduan/swiftonnix
Scripts for generating Nix expression for the Swift toolchain.
https://github.com/dduan/swiftonnix
Last synced: 23 days ago
JSON representation
Scripts for generating Nix expression for the Swift toolchain.
- Host: GitHub
- URL: https://github.com/dduan/swiftonnix
- Owner: dduan
- Created: 2022-01-24T02:53:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-30T02:36:12.000Z (about 3 years ago)
- Last Synced: 2025-01-11T16:51:26.079Z (about 1 month ago)
- Language: Nix
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a tool that streamlines the process of updating `swift` for nixpkgs. It aims to be dirty, but quick.
Given a Swift release's full version, we want to figure out its dependency repositories by looking at its `update-checkout-config.json`. Then, we use `nix-prefetch-url --unpack *` to figure out the sha value Nix expects. Given the shas and versions, we fill it in to a template.
Obviously, this is very simplistic. Swift's full build setup could change in ways that require more project
checkouts, more source patches, etc. This tool does not help with that in any way.Basic usage:
```
# generate the nix expression in tmp/default.nix
python3 generate.py 5.5.2 default.nix
```