Merge pull request #330266 from ExpidusOS/fix/pkgsllvm/graphite2

graphite2: fix compiling with llvm
This commit is contained in:
Peder Bergebakken Sundt 2024-08-03 23:08:43 +02:00 committed by GitHub
commit 7f9ed2e65a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = ''