image_optim: init at 0.26.3

+155
+2
pkgs/applications/graphics/image_optim/Gemfile
···
··· 1 + source 'https://rubygems.org' 2 + gem 'image_optim'
+23
pkgs/applications/graphics/image_optim/Gemfile.lock
···
··· 1 + GEM 2 + remote: https://rubygems.org/ 3 + specs: 4 + exifr (1.3.6) 5 + fspath (3.1.0) 6 + image_optim (0.26.3) 7 + exifr (~> 1.2, >= 1.2.2) 8 + fspath (~> 3.0) 9 + image_size (>= 1.5, < 3) 10 + in_threads (~> 1.3) 11 + progress (~> 3.0, >= 3.0.1) 12 + image_size (2.0.0) 13 + in_threads (1.5.1) 14 + progress (3.5.0) 15 + 16 + PLATFORMS 17 + ruby 18 + 19 + DEPENDENCIES 20 + image_optim 21 + 22 + BUNDLED WITH 23 + 1.16.3
+68
pkgs/applications/graphics/image_optim/default.nix
···
··· 1 + { lib, bundlerApp, fetchurl, ruby, makeWrapper, 2 + withPngcrush ? true, pngcrush ? null, 3 + withPngout ? true, pngout ? null, 4 + withAdvpng ? true, advancecomp ? null, 5 + withOptipng ? true, optipng ? null, 6 + withPngquant ? true, pngquant ? null, 7 + withJhead ? true, jhead ? null, 8 + withJpegoptim ? true, jpegoptim ? null, 9 + withJpegrecompress ? true, jpeg-archive ? null, 10 + withJpegtran ? true, libjpeg ? null, 11 + withGifsicle ? true, gifsicle ? null, 12 + withSvgo ? true, svgo ? null 13 + }: 14 + 15 + assert withPngcrush -> pngcrush != null; 16 + assert withPngout -> pngout != null; 17 + assert withAdvpng -> advancecomp != null; 18 + assert withOptipng -> optipng != null; 19 + assert withPngquant -> pngquant != null; 20 + assert withJhead -> jhead != null; 21 + assert withJpegoptim -> jpegoptim != null; 22 + assert withJpegrecompress -> jpeg-archive != null; 23 + assert withJpegtran -> libjpeg != null; 24 + assert withGifsicle -> gifsicle != null; 25 + assert withSvgo -> svgo != null; 26 + 27 + with lib; 28 + 29 + let 30 + optionalDepsPath = makeBinPath ( 31 + [] 32 + ++ optional withPngcrush pngcrush 33 + ++ optional withPngout pngout 34 + ++ optional withAdvpng advancecomp 35 + ++ optional withOptipng optipng 36 + ++ optional withPngquant pngquant 37 + ++ optional withJhead jhead 38 + ++ optional withJpegoptim jpegoptim 39 + ++ optional withJpegrecompress jpeg-archive 40 + ++ optional withJpegtran libjpeg 41 + ++ optional withGifsicle gifsicle 42 + ++ optional withSvgo svgo 43 + ); 44 + in 45 + 46 + bundlerApp { 47 + pname = "image_optim"; 48 + gemdir = ./.; 49 + 50 + inherit ruby; 51 + 52 + exes = [ "image_optim" ]; 53 + 54 + buildInputs = [ makeWrapper ]; 55 + 56 + postBuild = '' 57 + wrapProgram $out/bin/image_optim \ 58 + --prefix PATH : ${optionalDepsPath} 59 + ''; 60 + 61 + meta = with lib; { 62 + description = "Command line tool and ruby interface to optimize (lossless compress, optionally lossy) jpeg, png, gif and svg images using external utilities (advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegrescan, jpegtran, optipng, pngcrush, pngout, pngquant, svgo)"; 63 + homepage = http://github.com/toy/image_optim; 64 + license = licenses.mit; 65 + maintainers = with maintainers; [ srghma ]; 66 + platforms = platforms.all; 67 + }; 68 + }
+51
pkgs/applications/graphics/image_optim/gemset.nix
···
··· 1 + { 2 + exifr = { 3 + source = { 4 + remotes = ["https://rubygems.org"]; 5 + sha256 = "0q2abhiyvgfv23i0izbskjxcqaxiw9bfg6s57qgn4li4yxqpwpfg"; 6 + type = "gem"; 7 + }; 8 + version = "1.3.6"; 9 + }; 10 + fspath = { 11 + source = { 12 + remotes = ["https://rubygems.org"]; 13 + sha256 = "1vjn9sy4hklr2d5wxmj5x1ry31dfq3sjp779wyprb3nbbdmra1sc"; 14 + type = "gem"; 15 + }; 16 + version = "3.1.0"; 17 + }; 18 + image_optim = { 19 + dependencies = ["exifr" "fspath" "image_size" "in_threads" "progress"]; 20 + source = { 21 + remotes = ["https://rubygems.org"]; 22 + sha256 = "082w9qcyy9j6m6s2pknfdcik7l2qch4j48axs13m06l4s1hz0dmg"; 23 + type = "gem"; 24 + }; 25 + version = "0.26.3"; 26 + }; 27 + image_size = { 28 + source = { 29 + remotes = ["https://rubygems.org"]; 30 + sha256 = "0bcn7nc6qix3w4sf7xd557lnsgjniqa7qvz7nnznx70m8qfbc7ig"; 31 + type = "gem"; 32 + }; 33 + version = "2.0.0"; 34 + }; 35 + in_threads = { 36 + source = { 37 + remotes = ["https://rubygems.org"]; 38 + sha256 = "14hqm59sgqi91ag187zwpgwi58xckjkk58m031ghkp0csl8l9mkx"; 39 + type = "gem"; 40 + }; 41 + version = "1.5.1"; 42 + }; 43 + progress = { 44 + source = { 45 + remotes = ["https://rubygems.org"]; 46 + sha256 = "1yrzq4v5sp7cg4nbgqh11k3d1czcllfz98dcdrxrsjxwq5ziiw0p"; 47 + type = "gem"; 48 + }; 49 + version = "3.5.0"; 50 + }; 51 + }
+9
pkgs/applications/graphics/image_optim/update.sh
···
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p bundix bundler 3 + 4 + SCRIPT_DIR=$(dirname "$(readlink -f "$BASH_SOURCE")") 5 + 6 + cd $SCRIPT_DIR 7 + 8 + bundle lock --update 9 + bundix
+2
pkgs/top-level/all-packages.nix
··· 22515 22516 illum = callPackage ../tools/system/illum { }; 22517 22518 # using the new configuration style proposal which is unstable 22519 jack1 = callPackage ../misc/jackaudio/jack1.nix { }; 22520
··· 22515 22516 illum = callPackage ../tools/system/illum { }; 22517 22518 + image_optim = callPackage ../applications/graphics/image_optim { inherit (nodePackages) svgo; }; 22519 + 22520 # using the new configuration style proposal which is unstable 22521 jack1 = callPackage ../misc/jackaudio/jack1.nix { }; 22522