Skip to content

Commit

Permalink
Merge pull request #268821 from LeSuisse/optipng-0.7.8
Browse files Browse the repository at this point in the history
optipng: 0.7.7 -> 0.7.8
  • Loading branch information
ajs124 committed Nov 21, 2023
2 parents e14565a + a92a94f commit 98405dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/tools/graphics/optipng/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 98405dd

Please sign in to comment.