mozjpeg: init at 3.1
This commit is contained in:
parent
f148e119fe
commit
6acad9ea04
|
@ -0,0 +1,32 @@
|
||||||
|
{ stdenv, fetchurl, file, libpng, nasm }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "3.1";
|
||||||
|
name = "mozjpeg-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/mozilla/mozjpeg/releases/download/v${version}/mozjpeg-${version}-release-source.tar.gz";
|
||||||
|
sha256 = "07vs0xq9di7bv3y68daig8dvxvjqrn8a5na702gj3nn58a1xivfy";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
|
||||||
|
sed -i -e "s!/usr/bin/file!${file}/bin/file!g" configure
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ libpng nasm ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Mozilla JPEG Encoder Project";
|
||||||
|
longDescription = ''
|
||||||
|
This project's goal is to reduce the size of JPEG files without reducing quality or compatibility with the
|
||||||
|
vast majority of the world's deployed decoders.
|
||||||
|
|
||||||
|
The idea is to reduce transfer times for JPEGs on the Web, thus reducing page load times.
|
||||||
|
'';
|
||||||
|
homepage = https://github.com/mozilla/mozjpeg ;
|
||||||
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.aristid ];
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -12514,6 +12514,8 @@ let
|
||||||
|
|
||||||
mozplugger = callPackage ../applications/networking/browsers/mozilla-plugins/mozplugger {};
|
mozplugger = callPackage ../applications/networking/browsers/mozilla-plugins/mozplugger {};
|
||||||
|
|
||||||
|
mozjpeg = callPackage ../applications/graphics/mozjpeg { };
|
||||||
|
|
||||||
easytag = callPackage ../applications/audio/easytag { };
|
easytag = callPackage ../applications/audio/easytag { };
|
||||||
|
|
||||||
mp3gain = callPackage ../applications/audio/mp3gain { };
|
mp3gain = callPackage ../applications/audio/mp3gain { };
|
||||||
|
|
Loading…
Reference in New Issue