Created
March 11, 2022 18:11
-
-
Save sioodmy/caa8c307104088c078ce931f4b884eeb to your computer and use it in GitHub Desktop.
Rust crow nix-shell example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; mkShell { | |
nativeBuildInputs = [ | |
pkgconfig | |
clang lld # To use lld linker | |
]; | |
buildInputs = [ | |
udev alsaLib vulkan-loader libGL egl-wayland | |
x11 xorg.libXcursor xorg.libXrandr xorg.libXi # To use x11 feature | |
libxkbcommon wayland # To use wayland feature | |
]; | |
shellHook = ''export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath [ | |
udev alsaLib vulkan-loader libGL | |
libxkbcommon wayland # To use wayland feature | |
]}"''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment