mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 01:37:26 +00:00
Update mozjpeg flake
This commit is contained in:
@@ -18,8 +18,8 @@
|
|||||||
system:
|
system:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
inherit (pkgs) stdenv runCommand writeShellScriptBin;
|
||||||
in
|
in
|
||||||
with pkgs;
|
|
||||||
rec {
|
rec {
|
||||||
packages = rec {
|
packages = rec {
|
||||||
default = mozjpeg-squoosh;
|
default = mozjpeg-squoosh;
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
cp ${./.}/Makefile $out/
|
cp ${./.}/Makefile $out/
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
emscripten
|
pkgs.emscripten
|
||||||
mozjpeg
|
pkgs.mozjpeg
|
||||||
];
|
];
|
||||||
MOZJPEG = mozjpeg;
|
MOZJPEG = mozjpeg;
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
@@ -51,11 +51,11 @@
|
|||||||
name = "mozjpeg";
|
name = "mozjpeg";
|
||||||
src = mozjpeg-src;
|
src = mozjpeg-src;
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoconf
|
pkgs.autoconf
|
||||||
automake
|
pkgs.automake
|
||||||
libtool
|
pkgs.libtool
|
||||||
emscripten
|
pkgs.emscripten
|
||||||
pkg-config
|
pkgs.pkg-config
|
||||||
];
|
];
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
# $HOME is required for Emscripten to work.
|
# $HOME is required for Emscripten to work.
|
||||||
|
|||||||
Reference in New Issue
Block a user