Merge pull request #134783 from amesgen/update-closurecompiler-20210808
closurecompiler: 20200719 -> 20210808
This commit is contained in:
commit
bcbb07c01b
@ -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"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user