heyarne.specimen/flake.nix
2022-09-26 21:21:38 +02:00

35 lines
724 B
Nix

{
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);
};
};
}