Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Aljaž Mur Eržen <aljaz@edgedb.com>
- Loading branch information
1 parent
d8c8097
commit 743c571
Showing
4 changed files
with
166 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,9 @@ | |
/.vagga | ||
/target | ||
.vscode | ||
.idea | ||
.idea | ||
|
||
# Nix | ||
result | ||
.direnv | ||
.envrc |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
description = "The EdgeDB CLI"; | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
|
||
# provides rust toolchain | ||
fenix = { | ||
url = "github:nix-community/fenix"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
inputs.rust-analyzer-src.follows = ""; | ||
}; | ||
|
||
edgedb = { | ||
url = "github:edgedb/packages-nix"; | ||
inputs.nixpkgs.follows = "nixpkgs"; | ||
inputs.flake-parts.follows = "flake-parts"; | ||
}; | ||
}; | ||
|
||
outputs = inputs@{ flake-parts, fenix, edgedb, ... }: | ||
flake-parts.lib.mkFlake {inherit inputs;} { | ||
systems = ["x86_64-linux" "x86_64-darwin"]; | ||
perSystem = { config, system, pkgs, ... }: | ||
let | ||
fenix_pkgs = fenix.packages.${system}; | ||
|
||
rustToolchain = (fenix_pkgs.complete.withComponents [ | ||
"cargo" | ||
"clippy" | ||
"rust-src" | ||
"rustc" | ||
"rustfmt" | ||
"rust-analyzer" | ||
]); | ||
|
||
in { | ||
devShells.default = pkgs.mkShell { | ||
buildInputs = [ | ||
rustToolchain | ||
|
||
# needed for running tests | ||
edgedb.packages.${system}.edgedb-server | ||
]; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters