Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was struggling to update nixpkgs's edgedb package, so I decied to nixify this repo instead.
Why you could consider to use Nix:
Right now it's already possible to build edgedb-cli package via
nix build .?submodules=1
. Result binary will be located in./result/bin/edgedb
Current limitations:
?submodules=1
to handle this. For using in consumer flake.nix, following syntax is required:Related PR: NixOS/nix#7862
I also created draft PR with developer environment setup with edgedb-server (#1160). Related: NixOS/nixpkgs#179635 (comment)
Current used Nix libs:
flake-parts: framework for convinient cross-platform flake shape: https://flake.parts. Allows splitting flake to modules, also provides opportunity to confiure some usefull tools declaratively
fenix: convinient rust toolchain managment: https://github.com/nix-community/fenix. Allows creating single package from multiple toolchains (cargo, rustc, rustc-src, rustfmt, rust-analyzer, clippy and so on)
crane: https://crane.dev. Usefull tool for effecient building of Rust project. Caches cargo artifacts.
I think it would be nice to configure integration with cachix later, so users will download cached result instead of rebuilding themselfs