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