closurecompiler: 20200719 -> 20210808

This commit is contained in:
amesgen 2021-08-18 22:40:40 +02:00
parent cb2871a6cf
commit c2bc610de0
No known key found for this signature in database
GPG key ID: 1A89EC203635A13D

View file

@ -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"
'';