21 stdenv.mkDerivation rec {
26 url = "https://github.com/libgd/libgd/releases/download/${pname}-${version}/libgd-${version}.tar.xz";
27 sha256 = "0qas3q9xz3wgw06dm2fj0i189rain6n60z1vyq50d5h7wbn25s1z";
33 name = "restore-GD_FLIP.patch";
34 url = "https://github.com/libgd/libgd/commit/f4bc1f5c26925548662946ed7cfa473c190a104a.diff";
35 sha256 = "XRXR3NOkbEub3Nybaco2duQk0n8vxif5mTl2AUacn9w=";
39 hardeningDisable = [ "format" ];
45 # -pthread gets passed to clang, causing warnings
46 ++ lib.optional stdenv.hostPlatform.isDarwin "--enable-werror=no";
64 ++ lib.optionals withXorg [
76 moveToOutput "bin/gdlib-config" $dev
79 enableParallelBuilding = true;
81 doCheck = false; # fails 2 tests
84 homepage = "https://libgd.github.io/";
85 description = "Dynamic image creation library";
86 license = licenses.free; # some custom license
87 platforms = platforms.unix;