add shell.nix file

This commit is contained in:
Aaron Honeycutt 2025-01-14 16:22:31 -07:00 committed by Jeremy Soller
parent 701fc818f7
commit 57172c14d0

30
shell.nix Normal file
View file

@ -0,0 +1,30 @@
{ pkgs ? import <nixpkgs> {} }:
let
libPath = with pkgs; lib.makeLibraryPath [
libGL
libxkbcommon
wayland
];
in {
devShell = with pkgs; mkShell {
buildInputs = [
cargo
pkg-config
libxkbcommon
glib
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
gst_all_1.gst-vaapi
rustc
rust-analyzer
];
RUST_LOG = "debug";
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
LD_LIBRARY_PATH = libPath;
};
}