groff: fix build with clang >= 9
This commit is contained in:
parent
c9af80e44a
commit
5ed7e55167
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, perl
|
{ lib, stdenv, fetchurl, fetchpatch, perl
|
||||||
, ghostscript #for postscript and html output
|
, ghostscript #for postscript and html output
|
||||||
, psutils, netpbm #for html output
|
, psutils, netpbm #for html output
|
||||||
, buildPackages
|
, buildPackages
|
||||||
|
@ -22,6 +22,13 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./0001-Fix-cross-compilation-by-looking-for-ar.patch
|
./0001-Fix-cross-compilation-by-looking-for-ar.patch
|
||||||
|
]
|
||||||
|
++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "9") [
|
||||||
|
# https://trac.macports.org/ticket/59783
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://raw.githubusercontent.com/openembedded/openembedded-core/ce265cf467f1c3e5ba2edbfbef2170df1a727a52/meta/recipes-extended/groff/files/0001-Include-config.h.patch";
|
||||||
|
sha256 = "1b0mg31xkpxkzlx696nr08rcc7ndpaxdplvysy0hw5099c4n1wyf";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = lib.optionalString (psutils != null) ''
|
postPatch = lib.optionalString (psutils != null) ''
|
||||||
|
|
Loading…
Reference in New Issue