https://github.com/samasaur1/nix-swift-hello
https://github.com/samasaur1/nix-swift-hello
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samasaur1/nix-swift-hello
- Owner: Samasaur1
- Created: 2024-04-19T00:58:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T09:05:13.000Z (5 months ago)
- Last Synced: 2025-02-13T09:33:11.813Z (5 months ago)
- Language: Nix
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An example Swift package, packaged with Nix.
This repository is designed to be a template for Nix-packaged Swift Package Manager projects.
### Adding Apple libraries:
You don't need to do anything to add libraries in the SDK. Just import them in Swift.
That said, if you *do* import Apple libraries, you'll want to update `default.nix` to note that the supported platforms are only Darwin.
You may also need to add a newer version of the SDK to `buildInputs`, since nixpkgs defaults to an older version of the SDK
### Adding SPM packages:
Edit `Package.swift` as normal, run `swift package resolve`, and then run `swiftpm2nix` from nixpkgs.