sbt-purifier

Locked, Nix-resolved dependencies for sbt.

Quickstart

nix shell 'github:nix-purifiers/sbt-purifier#sbt'
sbt nixLock
sbt compile
sbt test

Commit the lockfiles: sbt-purifier.lock.json.

Development loop

Keep using the native build and test commands in your working tree. After changing dependency declarations, refresh the lock through the native lock workflow shown above.

Using locked dependencies

Without an applicable purifier lock, the supplied wrapper warns and runs the tool with its usual dependency resolution.

Working offline

Prepare dependencies using the Quickstart workflow before disconnecting. The lock covers the recorded dependency downloads; downloads performed outside that lock need separate inputs.

Supported scope

Target systems

  • x86_64-linux
  • aarch64-linux
  • aarch64-darwin

Platform limits

  • At producer 169b2e6e6a5d87f6c7f43e45b72f57e59f09c35c, native aarch64-darwin CI passed the exact sbt 1.11.7, 1.13.1 and 2.0.12 runtime samples on Zulu OpenJDK 21.0.11+10-LTS; these are observed points, not a general platform or JDK range.
  • The independent sbt 1.11.7 and 1.13.1 checked packages passed actual sandboxed –rebuild runs. The authored sbt 2.0.12 fixture has an ordinary successful sandboxed build and observed output identity; no fresh checked-package rebuild is claimed for it.
  • Darwin 1.x controls passed three cross-process IPv4 socket pairs and default/INET external permission denials. Unsupported IPv6 remains unproven; no Darwin sbt 0.13 execution is claimed.
  • The Darwin lock-generation fix requires a plugin built from the merged change or a release containing it
  • Test scripts require Bash 4 or later; macOS /bin/bash 3.2 is insufficient

More information

Setup and activation · Version compatibility · Using locked dependencies · Working offline · Language tooling integration · Nix builds · Troubleshooting.