yuicompressor: normalize

This commit is contained in:
Yegor Timoshenko 2018-05-24 11:10:06 +03:00 committed by Matthew Bauer
parent f2daf23137
commit d886a1e630

View File

@ -3,20 +3,14 @@
stdenv.mkDerivation rec {
name = "yuicompressor-${version}";
version = "2.4.8";
src = fetchurl {
url = "http://github.com/yui/yuicompressor/releases/download/v${version}/${name}.jar";
sha256 = "1qjxlak9hbl9zd3dl5ks0w4zx5z64wjsbk7ic73r1r45fasisdrh";
};
buildInputs = [makeWrapper jre];
meta = {
description = "A JavaScript and CSS minifier";
maintainers = [ stdenv.lib.maintainers.jwiegley ];
platforms = stdenv.lib.platforms.all;
homepage = http://yui.github.io/yuicompressor/;
license = stdenv.lib.licenses.bsd3;
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
buildCommand = ''
mkdir -p $out/{bin,lib}
@ -24,4 +18,12 @@ stdenv.mkDerivation rec {
makeWrapper ${jre}/bin/java $out/bin/yuicompressor --add-flags \
"-cp $out/lib/yuicompressor.jar com.yahoo.platform.yui.compressor.YUICompressor"
'';
meta = with stdenv.lib; {
description = "A JavaScript and CSS minifier";
homepage = http://yui.github.io/yuicompressor/;
license = licenses.bsd3;
maintainers = with maintainers; [ jwiegley ];
platforms = platforms.all;
};
}