diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-09-30 11:06:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-30 11:06:26 +0800 |
commit | 0bf3f4bbe722426220b8e441eeabc60ea3307c30 (patch) | |
tree | 5977d717db4ccc1b586330d80751c65e80c684c2 /pkgs | |
parent | 2ee3e7131b21978243bb09d4d442658a24ca4058 (diff) | |
parent | bbb26760a022bfcd17e368039e035b9c0b7d1e89 (diff) |
Merge pull request #29823 from yegortimoshenko/closure-compiler/20170910
closure-compiler: 20170218 -> 20170910
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/compilers/closure/default.nix | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/pkgs/development/compilers/closure/default.nix b/pkgs/development/compilers/closure/default.nix index 86e04b491e57c..8d1b06f52b70d 100644 --- a/pkgs/development/compilers/closure/default.nix +++ b/pkgs/development/compilers/closure/default.nix @@ -1,31 +1,30 @@ -{ stdenv, fetchurl, jre, gnutar, bash }: +{ stdenv, fetchurl, jre, makeWrapper }: stdenv.mkDerivation rec { name = "closure-compiler-${version}"; - version = "20170218"; + version = "20170910"; src = fetchurl { - url = "http://dl.google.com/closure-compiler/compiler-${version}.tar.gz"; - sha256 = "06snabmpy07x4xm8d1xgq5dfzbjli10xkxk3nx9jms39zkj493cd"; + url = "https://dl.google.com/closure-compiler/compiler-${version}.tar.gz"; + sha256 = "0znzsks8ql9qajhcjzfkhmnpz8zs6b8cji04fhivyq973jpxxrak"; }; - phases = [ "installPhase" ]; + sourceRoot = "."; - buildInputs = [ gnutar ]; + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ jre ]; installPhase = '' mkdir -p $out/share/java $out/bin - tar -xzf $src - cp -r closure-compiler-v${version}.jar $out/share/java/ - echo "#!${bash}/bin/bash" > $out/bin/closure-compiler - echo "${jre}/bin/java -jar $out/share/java/closure-compiler-v${version}.jar \"\$@\"" >> $out/bin/closure-compiler - chmod +x $out/bin/closure-compiler + cp closure-compiler-v${version}.jar $out/share/java + makeWrapper ${jre}/bin/java $out/bin/closure-compiler \ + --add-flags "-jar $out/share/java/closure-compiler-v${version}.jar" ''; - meta = { + meta = with stdenv.lib; { description = "A tool for making JavaScript download and run faster"; homepage = https://developers.google.com/closure/compiler/; - license = stdenv.lib.licenses.asl20; - platforms = stdenv.lib.platforms.unix; + license = licenses.asl20; + platforms = platforms.all; }; } |