mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
flake.nix: Add bindgenHook workaround to devShell
This commit is contained in:
parent
db443f1932
commit
365d739bca
1 changed files with 5 additions and 0 deletions
|
@ -118,6 +118,11 @@
|
|||
RUST_SRC_PATH = "${pkgs.rustPlatform.rustcSrc}/library";
|
||||
|
||||
ATTIC_DISTRIBUTOR = "dev";
|
||||
|
||||
shellHook = ''
|
||||
export LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"
|
||||
export BINDGEN_EXTRA_CLANG_ARGS="$(< ${pkgs.llvmPackages.clang}/nix-support/cc-cflags) $(< ${pkgs.llvmPackages.clang}/nix-support/libc-cflags) $(< ${pkgs.llvmPackages.clang}/nix-support/libcxx-cxxflags) $NIX_CFLAGS_COMPILE"
|
||||
'';
|
||||
};
|
||||
|
||||
demo = pkgs.mkShell {
|
||||
|
|
Loading…
Reference in a new issue