add shell.nix file
This commit is contained in:
parent
701fc818f7
commit
57172c14d0
1 changed files with 30 additions and 0 deletions
30
shell.nix
Normal file
30
shell.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue