R
Railway15mo ago
jtechbit

Accessing current Nixpacks file

I need to install Poppler on my Railway environment. From what I can see one way to do this is via the Nixpacks file. I don't currently have one on my local. Is there a way to install Poppler via the Railway GUI. If not, is there a way to get the current Nixpacks file so I can add Poppler, without risking breaking other stuff by writing the Nixpacks file from scratch.
8 Replies
Percy
Percy15mo ago
Project ID: N/A
jtechbit
jtechbitOP15mo ago
N/A
Brody
Brody15mo ago
you dont need to write one from scratch at all, you can just add onto it like so
[phases.setup]
nixPkgs = ['...', 'poppler']
[phases.setup]
nixPkgs = ['...', 'poppler']
the ... is an extending array, it adds poppler onto whatever nix packages that nixpacks was already going to install
jtechbit
jtechbitOP15mo ago
Thanks mate! How do I find the path to poppler - I need to specify it in my code.
Brody
Brody15mo ago
do you though? wouldnt whatever library you are using check the $PATH? and i assume thats where poppler would be
jtechbit
jtechbitOP15mo ago
You're probably right. ChatGPT seems to think I need to specify the path, but should probably test first mildpanic
Brody
Brody15mo ago
let me know how that goes!
Тодор Вълков
Are there any changes to this? if I use ['...', 'poppler'] in my nixpacks.toml I still get 'Unable to get page count. Is poppler installed and in PATH?'
Want results from more Discord servers?
Add your server