Skip to content

Migrate nix packaging to scala-cli-nix (JVM, buildCoursierApp) - #99

Open
ghostbuster91 wants to merge 1 commit into
VirtusLab:mainfrom
ghostbuster91:scala-cli-nix
Open

Migrate nix packaging to scala-cli-nix (JVM, buildCoursierApp)#99
ghostbuster91 wants to merge 1 commit into
VirtusLab:mainfrom
ghostbuster91:scala-cli-nix

Conversation

@ghostbuster91

Copy link
Copy Markdown
Contributor

Replace the per-platform native-binary fetcher in flake.nix with a scala-cli-nix buildCoursierApp derivation that wraps the published org.virtuslab::cellar-cli JARs directly from Maven Central.

  • flake.nix: add scala-cli-nix input, replace platform table + native derivations with a single callPackage ./derivation.nix
  • derivation.nix: new file, buildCoursierApp with scala.lock.json
  • scala.lock.json: generated by scn lock-coords, pins 28 transitive JARs
  • ci.yml: promote nix job from flake show to nix build
  • release.yml: replace per-platform SRI hash sed with scn lock-coords regeneration + simplified version-only sed on flake.nix
  • RELEASING.md: document the new scala.lock.json step and retry behaviour

Replace the per-platform native-binary fetcher in flake.nix with a
scala-cli-nix buildCoursierApp derivation that wraps the published
org.virtuslab::cellar-cli JARs directly from Maven Central.

- flake.nix: add scala-cli-nix input, replace platform table + native
  derivations with a single callPackage ./derivation.nix
- derivation.nix: new file, buildCoursierApp with scala.lock.json
- scala.lock.json: generated by scn lock-coords, pins 28 transitive JARs
- ci.yml: promote nix job from flake show to nix build
- release.yml: replace per-platform SRI hash sed with scn lock-coords
  regeneration + simplified version-only sed on flake.nix
- RELEASING.md: document the new scala.lock.json step and retry behaviour

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant