5 buildGraalvmNativeImage,
9 baseName = "scala-update";
11 deps = stdenv.mkDerivation {
12 name = "${baseName}-deps-${version}";
14 export COURSIER_CACHE=$(pwd)
15 ${coursier}/bin/cs fetch io.github.kitlangton:scala-update_2.13:${version} > deps
16 mkdir -p $out/share/java
17 cp $(< deps) $out/share/java/
19 outputHashMode = "recursive";
20 outputHashAlgo = "sha256";
21 outputHash = "kNnFzzHn+rFq4taqRYjBYaDax0MHW+vIoSFVN3wxA8M=";
24 buildGraalvmNativeImage {
28 buildInputs = [ deps ];
30 src = "${deps}/share/java/${baseName}_2.13-${version}.jar";
32 extraNativeImageBuildArgs = [
34 "--enable-url-protocols=https"
41 native-image ''${nativeImageBuildArgs[@]} -cp $(JARS=("${deps}/share/java"/*.jar); IFS=:; echo "''${JARS[*]}")
46 installCheckPhase = ''
47 $out/bin/${baseName} --version | grep -q "${version}"
51 description = "Update your Scala dependencies interactively";
52 homepage = "https://github.com/kitlangton/scala-update";
53 license = licenses.asl20;
54 maintainers = [ maintainers.rtimush ];