@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/zpwz745mhlxx9lr9dwfdligbnwxk97i7-sbt-1.3.10.tgz
---
[process_args] java_version = '11'
[sbt_options] declare -a sbt_options=()
[copyRt] java9_rt = '/build/.sbt/0.13/java9-rt-ext-oracle_corporation_11_0_9/rt.jar'
copying runtime jar...
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-Dscala.ext.dirs=/build/.sbt/0.13/java9-rt-ext-oracle_corporation_11_0_9
-jar
/nix/store/q9zy4pam5hsk294plghd5jwci1n3jdfk-build5Ad/sbt/bin/sbt-launch.jar
[info] [launcher] getting org.scala-sbt sbt 1.3.10 (this may take some time)...
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
You probably access the destination server through a proxy server that is not well configured.
:
Is there a proxy or something to configure ?
I found few information about scala / sbt and Nix.
Hi, I looked into your derivation and I found few things that don’t really make sense to me.
build5Ad has some buildInputs, all of them shouldn’t be necessary, scala is even mentioned twice? If you want a specific jdk version you should have a global overlay instead, as that’s what sbt.mkDerivation will use.
buildH24 is a function from stdenv, but it’s not used anywhere, it can be simplified, simply remove the { stdenv, ... }: part. Also the buildInputs there are not needed usually.
For the rest, I don’t know exactly what’s failing as it’s not mentioned. sbt uses coursier since 1.3.0 and I have many projects that are using it with sbt-derivation without any problems.
You’re right, my example is not clear because i make some typo during test and i try multiple things like overlay / buildInputs due to my misunderstanding on some nixos things …
build5Ad need buildH24 as library published locally on .ivy to correctly compile, i don’t know if this is possible. Sbt compile h24 and publish locally, then 5Ad is compiled using this library.
I have error of resolution for some artifacts when i run the flake, error which don’t happen running sbt localy, outside of this flake. I take the time to rewrote a new version using your remarks tomorrow !
Update for @zaninime : Running just sbt publishLocal of H24 project, sbt failed with this error, the maven classic repo is malformed and don’t contain the jar, so normally resolver try another valid repo (existing in the build.sbt project, see h24/build.sbt at master · eighties-cities/h24 · GitHub) when i run sbt locally, but with sbt-derivation this is not the case. Is there an option ?
error: builder for '/nix/store/ac54jx2gbvggdcacmp8bwfpg40plbmha-buildh24-1.0.0.drv' failed with exit code 1;
last 10 log lines:
> [error] Not found
> [error] Not found
> [error] not found: /build/source/.nix/ivy/localjavax.media/jai-core/1.1.3/ivys/ivy.xml
> [error] download error: Caught java.net.UnknownHostException (repo1.maven.org) while downloading https://repo1.maven.org/maven2/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
> [error] download error: Caught java.net.UnknownHostException (repo.osgeo.org) while downloading https://repo.osgeo.org/repository/release/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
> [error] download error: Caught java.net.UnknownHostException (maven.geo-solutions.it) while downloading https://maven.geo-solutions.it/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
> [error] download error: Caught java.net.UnknownHostException (maven.geotoolkit.org) while downloading https://maven.geotoolkit.org/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
> [error] download error: Caught java.net.UnknownHostException (repo.boundlessgeo.com) while downloading https://repo.boundlessgeo.com/main/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
> [error] jai_core-1.1.3.jar not found under https://repo.osgeo.org/repository/release/javax/media/jai_core/1.1.3/
> [error] Total time: 1 s, completed Jan 26, 2022, 9:32:23 AM