forked from mirrors/nixpkgs
02297beade
Lots of packages are missing versions in their name. This adds them where appropriate. These were found with this command: $ nix-env -qa -f. | grep -v '\-[0-9A-Za-z.-_+]*$' | grep -v '^hook$' See issue #41007.
28 lines
856 B
Nix
28 lines
856 B
Nix
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
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;
|
|
};
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/{bin,lib}
|
|
ln -s $src $out/lib/yuicompressor.jar
|
|
makeWrapper ${jre}/bin/java $out/bin/yuicompressor --add-flags \
|
|
"-cp $out/lib/yuicompressor.jar com.yahoo.platform.yui.compressor.YUICompressor"
|
|
'';
|
|
}
|