Fix Nix derivation so it works in a Darwin Nix environment (explicitly requiring clang and setting env variable) (#84)

This commit is contained in:
Álvaro Castro-Castilla 2023-02-24 11:08:46 +02:00 committed by GitHub
parent 55aece674b
commit dfe17696e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -19,5 +19,10 @@ pkgs.mkShell {
pkg-config
rust-bin.stable."1.67.0".default
go_1_19 # 1.19.5
clang_14
llvmPackages_14.libclang
];
shellHook = ''
export LIBCLANG_PATH="${pkgs.llvmPackages_14.libclang.lib}/lib";
'';
}