New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Turn this repo into a Nix flake #97
Comments
Ok this sounds interesting @rushmorem . Out of interest, how does the build process work from a dependency point of view? (as you know Does it work with Github Releases, or build from source? Either way, definitely interested in investigating this... |
From NixOS' homepage:
It works with either. It can also work with binaries too. The preferred way of packaging in the Nix community, though, is to package from source.
You don't need to spend any time on this. I have been using NixOS since 2014. I already have a working flake I packaged using Naersk but I want to first convert it to Crane because it comes with some interesting features I think will be very helpful with our development environments. |
Ok awesome @rushmorem . A |
Not really. Nix saves its packages inside |
Implemented in #100. |
Is your feature request related to a problem?
Building this repo from source is a bit of challenge right now, even for Rust developers. This is especially true if one wants to use TiKV as their KV store.
Describe the solution
Nix flakes are the easiest way of distributing software from source, that I know of. If someone has a flake-enabled (flakes are currently still an experimental feature) Nix package manager, all they will need to do to install
surreal
on their system isnix profile install github:surrealdb/surrealdb
. This will download, compile and install the latest commit along with all its dependencies. One can target specific versions, branches or even commits. They don't need install it in their environment either.nix run github:surrealdb/surrealdb
is equivalent tocargo run
except it will download not only this repo but also all its dependencies.To turn the repo into a Nix flake, all we need to do is add to files to the root,
flake.nix
andflake.lock
.Alternative methods
Keep installing dependencies manually.
SurrealDB version
surreal 1.0.0-beta.7 for linux on x86_64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: