-
Notifications
You must be signed in to change notification settings - Fork 12
Get rid of Nix dependency #27
Comments
just though a little bit about a possible implementation: we might want to generate a package set which contains the name of the derivation and the src (which consists of URL and hash). Instead of nix-prefetch-* scripts we could fetch the data using Scala and compute the hashes on our side (I just checked it - Would you be fine with such an approach? |
All of that already works, nix-build should work without having ran |
|
We can add stuff to it by running
|
Also, in preparation for this, we should probably rename |
This changes allows it to generate the hashes for the JAR's package set without `nix-prefetch-scripts`, but `java.security.MessageDigest` instead. In order to achieve this, the following changes have been applied: * Replaced old `nix-prefetch-url` invokation in `FindArtifactsOfRepo` with `MessageDigest` * Use `Try[T]` for error handling of the artifact's fetcher. * Fixed minor working-directory bug in `tests/template-generation`. * Removed `nix-prefetch-scripts` from `sbtix-tool` closure. * Fixed `sbtix` package build expression. When `.bat` files are present that are non-executable, `wrapProgram` can't create a wrapper. Instead `find . -executable` should be used to wrap files in `$out/bin`. See nightkr#27
…dency-for-hash-computations Generate CheckSum using `java.security.MessageDigest`
The project has moved to GitLab: https://gitlab.com/teozkr/Sbtix/merge_requests/27 |
As @Ma27 said in #26 (comment), not everyone can (Windows users) or wants to use Nix (yet, hopefully). Thus, being able to generate Nix builds without having it installed would help make it easier for upstreams to provide up-to-date build files.
nix-prefetch-scripts
if it's not installedgenNix
about the "project" build, replacingsbtix-gen-all
sbt genNix
the main entry point, rather thansbtix-gen
sbtix-gen*
scriptsThe text was updated successfully, but these errors were encountered: