codesnap.nvim/shell.nix
2024-09-22 21:25:06 -07:00

17 lines
355 B
Nix

{ 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
'';
}