Skip to content

Commit

Permalink
scalafmt: change deps name to invalidate negative cache on Hydra [#32442
Browse files Browse the repository at this point in the history
]
  • Loading branch information
orivej committed Dec 15, 2017
1 parent 4859e70 commit 0ea7ad1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/tools/scalafmt/default.nix
Expand Up @@ -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";
Expand Down

0 comments on commit 0ea7ad1

Please sign in to comment.