BANG BIG PEANITS
This commit is contained in:
37
shell.nix
Normal file
37
shell.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
libs = with pkgs; [
|
||||
libGL
|
||||
libx11
|
||||
libxcursor
|
||||
libxrandr
|
||||
libxinerama
|
||||
libxi
|
||||
libxext
|
||||
wayland
|
||||
libxkbcommon
|
||||
alsa-lib
|
||||
fontconfig
|
||||
freetype
|
||||
glfw
|
||||
curl
|
||||
];
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
rustup
|
||||
|
||||
cmake
|
||||
pkg-config
|
||||
gcc
|
||||
|
||||
|
||||
llvmPackages.libclang
|
||||
llvmPackages.clang
|
||||
] ++ libs;
|
||||
|
||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (libs ++ [ pkgs.llvmPackages.libclang.lib ]);
|
||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||
BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${pkgs.glibc.dev}/include -isystem ${pkgs.stdenv.cc.cc}/lib/gcc/${pkgs.stdenv.hostPlatform.config}/${pkgs.stdenv.cc.cc.version}/include";
|
||||
}
|
||||
Reference in New Issue
Block a user