@@ -141,6 +141,14 @@ in
141141 # python requirements using python.withPackages
142142 sed -i '/ifndef VIRTUAL_ENV/,+2d' Makefile
143143
144+ # Remove check for missing zopfli, it doesn't
145+ # work and we guarantee its presence already.
146+ sed -i '/ifdef MISSING_ZOPFLI/,+2d' Makefile
147+ sed -i '/ifeq (,$(shell which $(ZOPFLIPNG)))/,+4d' Makefile
148+
149+ sed -i '/ZOPFLIPNG = zopflipng/d' Makefile
150+ echo "ZOPFLIPNG = ${zopfli}/bin/zopflipng" >> Makefile
151+
144152 # Make the build verbose so it won't get culled by Hydra thinking that
145153 # it somehow got stuck doing nothing.
146154 sed -i 's;\t@;\t;' Makefile