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