git.iko.soy/typeable/nixpkgs
on master help sign in
yuicompressor: normalize
commitd886a1e630d7e14c971b758a4b0472802aea5441 authorYegor Timoshenko <yegortimoshenko@riseup.net> dateThu 24 May 2018, 11:10 (9 years ago) parentf2daf23
1 file changed+11−9
pkgs/development/tools/yuicompressor/default.nix+11−9
pkgs/development/tools/yuicompressor/default.nix+11−9
@@ -3,20 +3,14 @@
33stdenv.mkDerivation rec {
44 name = "yuicompressor-${version}";
55 version = "2.4.8";
6+
67 src = fetchurl {
78 url = "http://github.com/yui/yuicompressor/releases/download/v${version}/${name}.jar";
89 sha256 = "1qjxlak9hbl9zd3dl5ks0w4zx5z64wjsbk7ic73r1r45fasisdrh";
910 };
1011
11− buildInputs = [makeWrapper jre];
12−
13− meta = {
14− description = "A JavaScript and CSS minifier";
15− maintainers = [ stdenv.lib.maintainers.jwiegley ];
16− platforms = stdenv.lib.platforms.all;
17− homepage = http://yui.github.io/yuicompressor/;
18− license = stdenv.lib.licenses.bsd3;
19− };
12+ nativeBuildInputs = [ makeWrapper ];
13+ buildInputs = [ jre ];
2014
2115 buildCommand = ''
2216 mkdir -p $out/{bin,lib}
@@ -24,4 +18,12 @@ stdenv.mkDerivation rec {
2418 makeWrapper ${jre}/bin/java $out/bin/yuicompressor --add-flags \
2519 "-cp $out/lib/yuicompressor.jar com.yahoo.platform.yui.compressor.YUICompressor"
2620 '';
21+
22+ meta = with stdenv.lib; {
23+ description = "A JavaScript and CSS minifier";
24+ homepage = http://yui.github.io/yuicompressor/;
25+ license = licenses.bsd3;
26+ maintainers = with maintainers; [ jwiegley ];
27+ platforms = platforms.all;
28+ };
2729}