mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #268821 from LeSuisse/optipng-0.7.8
optipng: 0.7.7 -> 0.7.8
This commit is contained in:
commit
98405dd2bd
1 changed files with 7 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue