Merge pull request #268821 from LeSuisse/optipng-0.7.8

optipng: 0.7.7 -> 0.7.8
This commit is contained in:
ajs124 2023-11-21 11:49:30 +01:00 committed by GitHub
commit 98405dd2bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,22 +6,26 @@
stdenv.mkDerivation rec {
pname = "optipng";
version = "0.7.7";
version = "0.7.8";
src = fetchurl {
url = "mirror://sourceforge/optipng/optipng-${version}.tar.gz";
sha256 = "0lj4clb851fzpaq446wgj0sfy922zs5l5misbpwv6w7qrqrz4cjg";
hash = "sha256-JaO9aEgfIVAsyqD0wT+E3PayAzjkxOjFHyzvvYUTOYw=";
};
buildInputs = [ libpng ];
LDFLAGS = lib.optional static "-static";
# Workaround for crash in cexcept.h. See
# https://github.com/NixOS/nixpkgs/issues/28106
preConfigure = ''
export LD=$CC
'';
# OptiPNG does not like --static, --build or --host
dontDisableStatic = true;
dontAddStaticConfigureFlags = true;
configurePlatforms = [ ];
configureFlags = [
"--with-system-zlib"
"--with-system-libpng"