a year ago
During the build I get the error cargo: command not found
. In my nixpacks.toml file rust is given as the provider. Tried to redeploy but it doesn't seem to be working.
0 Replies
Here are the build logs
a year ago
please share the nixpacks.toml file
a year ago
what does the providers option in your service settings say? if it doesnt include rust make sure to add it
a year ago
try deploying into a new service
a year ago
try deploying into a new service
a year ago
is rust selected in the providers list in the service settings?
a year ago
can you temporarily remove your nixpacks.toml file?
a year ago
let's see the build table now?
a year ago
now use this nixpacks.toml file instead -
[phases.setup]
nixPkgs = ["...", "ffmpeg"]
Oh, I somehow missed it in the docs that without the ...
it discards the auto-detected packages
a year ago
hey I missed that too when you sent it
Okay apparently this is not the end of my issues… I can see in the logs that ffmpeg being installed, but I guess the binary is not in the PATH
? My code can't spawn the ffmpeg process, it says that there is no such file. For testing I tried to run a which ffmpeg
but it doesn't return anything. Tried installing it via aptPkgs
instead of nixPkgs
but the issue still persists.
a year ago
well that means it's time to move to a Dockerfile
a year ago
And don't say you don't know how, if you know rust you can figure out a Dockerfile
Got my Dockerfile up and running and everything seems to work, including the ffmpeg. Thanks once again.
a year ago
I keep telling everyone, Dockerfile is the way to go, glad it worked for you too!