shell.nix

This commit is contained in:
Zynh Ludwig 2024-09-22 21:25:06 -07:00
parent a25e6ae626
commit 9439b2c710

17
shell.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> { }, additionalBuildInputs ? [ ] }:
with pkgs;
mkShell rec {
nativeBuildInputs = [
libclang
glibc
gcc
libuv
];
buildInputs = additionalBuildInputs ++ nativeBuildInputs;
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
shellHook = ''
export LIBCLANG_PATH=${llvmPackages.libclang.lib}/lib
'';
}