Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
makeWrapper,
|
|
jre,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "yuicompressor";
|
|
version = "2.4.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/yui/yuicompressor/releases/download/v${finalAttrs.version}/yuicompressor-${finalAttrs.version}.jar";
|
|
sha256 = "1qjxlak9hbl9zd3dl5ks0w4zx5z64wjsbk7ic73r1r45fasisdrh";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ jre ];
|
|
|
|
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"
|
|
'';
|
|
|
|
meta = {
|
|
description = "JavaScript and CSS minifier";
|
|
mainProgram = "yuicompressor";
|
|
homepage = "http://yui.github.io/yuicompressor/";
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ jwiegley ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|