Proof of Concept

This commit is contained in:
Philip (a-0) 2023-12-07 19:51:19 +01:00
commit e4fe60c06e
26 changed files with 4604 additions and 0 deletions

26
shell.nix Normal file
View 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;
}