-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flake.nix
: use a Nix package to facilitate sharing (#2016)
- Loading branch information
Showing
3 changed files
with
104 additions
and
56 deletions.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ crane, pkgs }: | ||
let | ||
rust-toolchain = (pkgs.rust-bin.fromRustupToolchainFile | ||
./toolchains/build/rust-toolchain.toml); | ||
in ((crane.mkLib pkgs).overrideToolchain rust-toolchain).buildPackage { | ||
pname = "linera"; | ||
src = ./.; | ||
cargoExtraArgs = "-p linera-service"; | ||
nativeBuildInputs = with pkgs; [ | ||
clang | ||
pkg-config | ||
rocksdb | ||
protobufc | ||
]; | ||
buildInputs = with pkgs; [ | ||
clang.cc.lib | ||
libiconv | ||
nodejs | ||
openssl | ||
protobuf | ||
]; | ||
checkInputs = with pkgs; [ | ||
# for native testing | ||
jq | ||
kubernetes-helm | ||
kind | ||
kubectl | ||
|
||
# for Wasm testing | ||
chromium | ||
chromedriver | ||
wasm-pack | ||
]; | ||
passthru = { inherit rust-toolchain; }; | ||
} |
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