Proof of Concept
This commit is contained in:
commit
e4fe60c06e
26 changed files with 4604 additions and 0 deletions
26
shell.nix
Normal file
26
shell.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
let
|
||||
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
|
||||
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
|
||||
#rustVersion = "latest";
|
||||
rustVersion = "1.76.0";
|
||||
rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
|
||||
extensions = [
|
||||
"rust-src" # for rust-analyzer
|
||||
];
|
||||
};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
rust
|
||||
] ++ (with pkgs; [
|
||||
rust-analyzer
|
||||
pkg-config
|
||||
openssl.dev
|
||||
clang
|
||||
sqlite
|
||||
# other dependencies
|
||||
# ...
|
||||
]);
|
||||
LIBCLANG_PATH = pkgs.libclang.lib + "/lib/";
|
||||
RUST_BACKTRACE = 1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue