Initial commit

This commit is contained in:
heyarne 2022-09-26 21:21:38 +02:00
commit c8cf358a11
6 changed files with 180 additions and 0 deletions

35
flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
description = "A very basic flake";
inputs.nixpkgs.url = github:NixOS/nixpkgs;
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
buildInputs = with pkgs; [
clippy
rustc
cargo
cargo-watch
rustfmt
rust-analyzer
# for nannou
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
vulkan-tools vulkan-headers vulkan-loader vulkan-validation-layers
# wayland
# xwayland
];
in {
devShell.${system} = pkgs.mkShell {
inherit buildInputs;
RUST_BACKTRACE = 1;
LD_LIBRARY_PATH = (lib.makeLibraryPath buildInputs);
};
};
}