From 8484ab300dba9a2e01c1c22e54c0633cdfbf166e Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 14 Jan 2025 16:22:31 -0700 Subject: [PATCH] add shell.nix file --- shell.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..bf24e63 --- /dev/null +++ b/shell.nix @@ -0,0 +1,30 @@ +{ pkgs ? import {} }: + 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; + }; + }