1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/compilers/closure/default.nix
R. RyanTM 2b9e2f5ade closurecompiler: 20180506 -> 20180610
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/closure-compiler/versions.

These checks were done:

- built on NixOS
- /nix/store/7mbi0qnqknb3z96a4af1p8wyyi0jf2q5-closure-compiler-20180610/bin/closure-compiler passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 20180610 with grep in /nix/store/7mbi0qnqknb3z96a4af1p8wyyi0jf2q5-closure-compiler-20180610
- directory tree listing: https://gist.github.com/2841b8a1c31feea2745c98e5234d70c3
- du listing: https://gist.github.com/e36999cb96d2e1b1366f7bd1c3804cad
2018-06-14 08:30:32 -07:00

31 lines
880 B
Nix

{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "closure-compiler-${version}";
version = "20180610";
src = fetchurl {
url = "https://dl.google.com/closure-compiler/compiler-${version}.tar.gz";
sha256 = "1qg9a1whmrkrifqrsb9m541cgr3rf1nnkqlv4q7rq30m8bdilvk5";
};
sourceRoot = ".";
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
installPhase = ''
mkdir -p $out/share/java $out/bin
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 = with stdenv.lib; {
description = "A tool for making JavaScript download and run faster";
homepage = https://developers.google.com/closure/compiler/;
license = licenses.asl20;
platforms = platforms.all;
};
}