forked from mirror/codesnap.nvim
17 lines
355 B
Nix
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
|
|
'';
|
|
}
|