Update mozjpeg flake

This commit is contained in:
Surma
2024-09-06 15:00:10 +01:00
parent c1be464503
commit 7e564e240a

View File

@@ -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.