Merge pull request #255219 from jbedo/rmarkdown

rPackages.pandoc: fix pandoc linking
This commit is contained in:
Artturi 2023-09-15 19:17:44 +03:00 committed by GitHub
commit bdc382d331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -603,7 +603,6 @@ let
ncdfFlow = [ pkgs.zlib.dev ];
proj4 = [ pkgs.proj.dev ];
rtmpt = [ pkgs.gsl ];
rmarkdown = [ pkgs.pandoc ];
mixcat = [ pkgs.gsl ];
libstableR = [ pkgs.gsl ];
landsepi = [ pkgs.gsl ];
@ -1362,6 +1361,13 @@ let
patches = [ ./patches/rhdf5.patch ];
});
rmarkdown = old.rmarkdown.overrideAttrs (_: {
preConfigure = ''
substituteInPlace R/pandoc.R \
--replace '"~/opt/pandoc"' '"~/opt/pandoc", "${pkgs.pandoc}/bin"'
'';
});
redland = old.redland.overrideAttrs (_: {
PKGCONFIG_CFLAGS="-I${pkgs.redland}/include -I${pkgs.librdf_raptor2}/include/raptor2 -I${pkgs.librdf_rasqal}/include/rasqal";
PKGCONFIG_LIBS="-L${pkgs.redland}/lib -L${pkgs.librdf_raptor2}/lib -L${pkgs.librdf_rasqal}/lib -lrdf -lraptor2 -lrasqal";