scalafmt: change deps name to invalidate negative cache on Hydra [#32442]

This commit is contained in:
Orivej Desh 2017-12-15 19:34:14 +00:00
parent 4859e70468
commit 0ea7ad1547

View File

@ -4,11 +4,12 @@ let
baseName = "scalafmt";
version = "1.3.0";
deps = stdenv.mkDerivation {
name = "${baseName}-${version}-deps";
name = "${baseName}-deps-${version}";
buildCommand = ''
export COURSIER_CACHE=$(pwd)
${coursier}/bin/coursier fetch com.geirsson:scalafmt-cli_2.12:${version} > deps
mkdir -p $out/share/java
cp $(${coursier}/bin/coursier fetch com.geirsson:scalafmt-cli_2.12:${version}) $out/share/java/
cp $(< deps) $out/share/java/
'';
outputHashMode = "recursive";
outputHashAlgo = "sha256";