Added devenv and moved config files

This commit is contained in:
marc
2022-11-25 20:16:46 +01:00
parent ebbbd0d179
commit 69e1dc2eb4
38 changed files with 184 additions and 11 deletions

View File

@@ -0,0 +1,32 @@
{
description = "Development flake for this rust project";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
projectDependencies = with pkgs; [
];
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
# Core rust dependencies
rustc
cargo
# Development tools
rustfmt
rust-analyzer
clippy
] ++ projectDependencies;
LD_LIBRARY_PATH = nixpkgs.lib.makeLibraryPath projectDependencies;
RUST_BACKTRACE = 1;
};
});
}