Skip to content

Commit

Permalink
add shell.nix file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoneybun committed Jan 14, 2025
1 parent 7c080fe commit 8484ab3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

0 comments on commit 8484ab3

Please sign in to comment.