setup flake

This commit is contained in:
jackjohn7 2025-11-04 18:40:38 -06:00
parent af0cf1f548
commit 5bc23f92d3
6 changed files with 136 additions and 0 deletions

20
flake.nix Normal file
View file

@ -0,0 +1,20 @@
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
devShells."x86_64-linux".default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo rustc rustfmt clippy rust-analyzer glibc
];
nativeBuildInputs = [ pkgs.pkg-config ];
env.RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
};
}