My package currently relies on fetching some precompiled binaries from here with fetchzip
I suspect this to cause issues, so i compiled them as a nix package
But i don’t know how to actually put it in place of those binaries in a way that would work
Currently the binaries are fetched like this
Not sure if I understand your question correctly, but either way, depends if those libraries have to be on the system for the program to run or just to build it and if they have to be system-native.
You’d have to create packages for those libraries, put them in either propagatedBuildInputs, buildInputs or nativeBuildInputs respectively, and optionally tweak the build process in a way that would make Zig understand where they are.
I believe they are needed just for the build
I have already created a package, that just takes the cubyz-libs repo, and compiles it
I can’t tweak the build process, i did not make this app, nor do i know zig, im just trying to package it
By default, it fetches those libraries as precompiled binaries in a tarball, which is what im trying to replace with my package
I don’t know how to make it use my package instead, that’s what i need help with
Hmm, can you actually cross-compile all the targets? Because if you have all the libraries for all the architectures, just placing all the libs in the same layout with runCommandNoCC shouldn’t be a problem
What I meant is just simply passing arguments or env variables to the build command telling it where to look.
Yes, I agree here.