rails gem 'wicked_pdf' not working on railway it is dependent on "wkhtmltopdf-binary" gem
So I am trying to get a pdf generator gem working call 'wicked_pdf'. It is dependent on another gem which call gem "wkhtmltopdf-binary". This works in development but not production. There is a gem specifically for Heroku called gem "wkhtmltopdf-heroku". It does not work either. "wkhtmltopdf is an open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine"
11 Replies
Project ID:
N/A
No search results found.
⚠️ experimental feature
N/A
same issue, not able to install wkhtmltopdf
set
NIXPACKS_PKGS
to wkhtmltopdf
when i do that it keeps building for 5+ minutes stuck trying to install qtwebkit
logs?
/tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/JavaScriptCore/bytecode/GetByIdVariant.cpp: In member function 'JSC::GetByIdVariant& JSC::GetByIdVariant::operator=(const JSC::GetByIdVariant&)':
#8 248.6 /tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/JavaScriptCore/bytecode/GetByIdVariant.cpp:64:28: warning: implicitly-declared 'JSC::StructureSet& JSC::StructureSet::operator=(const JSC::StructureSet&)' is deprecated [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-copy-Wdeprecated-copy8;;]
Warning Options (Using the GNU Compiler Collection (GCC))
Warning Options (Using the GNU Compiler Collection (GCC))
/tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0/source/Source/JavaScriptCore/bytecode/StructureSet.h:60:19: note: because 'JSC::StructureSet' has user-provided 'JSC::StructureSet::StructureSet(const JSC::StructureSet&)'
#8 248.6 60 | ALWAYS_INLINE StructureSet(const StructureSet& other)
theres 5000+ lines of logs trying to build files from tmp/nix-build-qtwebkit-5.212.0-alpha4.drv-0
fixed with NIXPACKS_PKGS=wkhtmltopdf-bin
So sorry to come in late on this; how did you add the NIXPACKS_PKGS=wkhtmltopdf-bin
I have not added a NIXPACK before
they set that in the service variables