mirror of
https://github.com/zhaofengli/attic.git
synced 2025-03-16 21:38:21 +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";
|
RUST_SRC_PATH = "${pkgs.rustPlatform.rustcSrc}/library";
|
||||||
|
|
||||||
ATTIC_DISTRIBUTOR = "dev";
|
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 {
|
demo = pkgs.mkShell {
|
||||||
|
|
Loading…
Add table
Reference in a new issue