graphite2: fix compiling with llvm

This commit is contained in:
Tristan Ross 2024-07-26 13:49:27 -07:00
parent aba9269332
commit 88a40d7830
No known key found for this signature in database
GPG Key ID: B09C422035669AF8

View File

@ -1,5 +1,6 @@
{ lib
, stdenv
, llvmPackages
, fetchurl
, pkg-config
, freetype
@ -20,7 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [ freetype ];
buildInputs = [ freetype ]
++ lib.optional (stdenv.targetPlatform.useLLVM or false)
(llvmPackages.compiler-rt.override {
doFakeLibgcc = true;
});
patches = lib.optionals stdenv.isDarwin [ ./macosx.patch ];
postPatch = ''