Merge pull request #204426 from SuperSandro2000/gd-nox

gd: add withXorg flag, little cleanups
This commit is contained in:
Artturi
2022-12-10 21:48:55 +02:00
committed by GitHub
+13 -7
View File
@@ -1,4 +1,6 @@
{ lib, stdenv, fetchurl
{ lib
, stdenv
, fetchurl
, fetchpatch
, autoconf
, automake
@@ -8,6 +10,7 @@
, libjpeg
, libwebp
, libtiff
, withXorg ? true
, libXpm
, libavif
, fontconfig
@@ -33,20 +36,22 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
configureFlags =
[
"--enable-gd-formats"
]
configureFlags = [
"--enable-gd-formats"
]
# -pthread gets passed to clang, causing warnings
++ lib.optional stdenv.isDarwin "--enable-werror=no";
nativeBuildInputs = [ autoconf automake pkg-config ];
buildInputs = [ zlib fontconfig freetype libpng libjpeg libwebp libtiff libXpm libavif ];
buildInputs = [ zlib fontconfig freetype libpng libjpeg libwebp libtiff libavif ]
++ lib.optional withXorg libXpm;
outputs = [ "bin" "dev" "out" ];
postFixup = ''moveToOutput "bin/gdlib-config" $dev'';
postFixup = ''
moveToOutput "bin/gdlib-config" $dev
'';
enableParallelBuilding = true;
@@ -57,5 +62,6 @@ stdenv.mkDerivation rec {
description = "A dynamic image creation library";
license = licenses.free; # some custom license
platforms = platforms.unix;
maintainers = with maintainers; [ ];
};
}