Hi! I’m at the very beginning of my discover of NixOS (and Nix).
I tried to find the right way to install the Symfony CLI. This binary isn’t in the nixpkgs and maybe for a reason. The recommended way is a script but the binary is also release in a github repository (the source isn’t provided). I know the binary contain a self updater.
I believe it’s possible to specify the path to the binary to install. Is it the right way? If so, where can I find documentation on this?
Or do I have to plan to run the script in a particular way?
makes for interesting reading… another one of these open source / closed source type projects.
nix likes source code. But binaries can be package with some extra effort.
You may need to use a fhs buildroot , or a combination of binary patching patchelf.
Success is highly dependant on the nature of the executable and if the libraries it need exist on within nix.
Grepping nixpkgs is alway where i start, to see if a similar project. Get a basic derivation going and usually someone will help with pointers to get it working.
The idea situation is to always start with the source, but it’s no always possible, and that is usually a layer 9 problem (politics).
You helped me a lot to understand how things works (well, in part at least). I’ll just post the blocks of code that works if it can help better someone else: