Unverified Commit 98405dd2 authored by ajs124's avatar ajs124 Committed by GitHub
Browse files

Merge pull request #268821 from LeSuisse/optipng-0.7.8

optipng: 0.7.7 -> 0.7.8
parents e14565a4 a92a94f5
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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"