Add Nix devshell flake#138
Conversation
|
did not mean to make this one a draft |
|
@glasgow-haskell-omelette Thanks for the contribution! I don't personally use Nix, but I can see how this A couple of notes regarding our setup:
I'm happy to merge this PR if the community is willing to maintain the devshell |
The flake shouldn't actually depend on any specific Rust version. The only thing it does currently is provide an environment with the necessary libraries to avoid having to figure out what one needs to add - so not that much. Not sure how rustPlatform.bindgenHook interacts with different versions, but using it with a non-nixpkgs nightly release works just fine.
Good point. Adding a library like this is functionally more or less equivalent to just installing it on a normal distro, and so should not interfere with anything, and will really only do anything when using the "system" strategy. CUDA and ROCm support for packages in Nixpkgs is generally managed through a central setting in the system's nixpkgs configuration, but can be overriden on a per-package basis. Unfortunately, there isn't a similar toggle for things like OpenVINO. The ONNXRuntime package in Nixpkgs also doesn't support ROCm - only CUDA. |
|
@glasgow-haskell-omelette Thanks for the clarification! I understand now that the flake mainly provides a convenient dev environment and doesn’t depend on a specific Rust version. It’s also good to know that the Nix-provided onnxruntime shouldn’t interfere with the Rust ort crate. I’m happy to merge this PR, as long as the community is willing to maintain the devshell. Thanks for taking the time to do this! |
this is just here for convenience. feel free to reject it if so desired