From c2bc610de00817761a6c7cc85270a9a9f217b847 Mon Sep 17 00:00:00 2001 From: amesgen Date: Wed, 18 Aug 2021 22:40:40 +0200 Subject: [PATCH] closurecompiler: 20200719 -> 20210808 --- pkgs/development/compilers/closure/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/compilers/closure/default.nix b/pkgs/development/compilers/closure/default.nix index b5ac2e187d8c..eb8c898e09ed 100644 --- a/pkgs/development/compilers/closure/default.nix +++ b/pkgs/development/compilers/closure/default.nix @@ -2,21 +2,21 @@ stdenv.mkDerivation rec { pname = "closure-compiler"; - version = "20200719"; + version = "20210808"; src = fetchurl { - url = "https://dl.google.com/closure-compiler/compiler-${version}.tar.gz"; - sha256 = "18095i98mk5kc1vpaf6gvmvhiyl2x4zrcwd7ix5l98jydldiz7wx"; + url = "https://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v${version}/closure-compiler-v${version}.jar"; + sha256 = "1cvibvm8l4mp64ml6lpsh3w62bgbr42pi3i7ga8ss0prhr0dsk3y"; }; - sourceRoot = "."; + dontUnpack = true; nativeBuildInputs = [ makeWrapper ]; buildInputs = [ jre ]; installPhase = '' mkdir -p $out/share/java $out/bin - cp closure-compiler-v${version}.jar $out/share/java + cp ${src} $out/share/java/closure-compiler-v${version}.jar makeWrapper ${jre}/bin/java $out/bin/closure-compiler \ --add-flags "-jar $out/share/java/closure-compiler-v${version}.jar" '';