fixed issues with clang path on nix
This commit is contained in:
parent
b1d7569150
commit
09ac7b59c9
2 changed files with 5 additions and 9 deletions
|
|
@ -7,6 +7,8 @@ pkgs.rustPlatform.buildRustPackage rec {
|
||||||
src = pkgs.lib.cleanSource ../.;
|
src = pkgs.lib.cleanSource ../.;
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
surrealdb
|
surrealdb
|
||||||
|
clang
|
||||||
];
|
];
|
||||||
# doCheck = false;
|
# doCheck = false;
|
||||||
}
|
LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,4 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
let
|
|
||||||
runtimeLibs = [
|
|
||||||
pkgs.libclang
|
|
||||||
pkgs.rocksdb
|
|
||||||
];
|
|
||||||
in
|
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
# Get dependencies from the main package
|
# Get dependencies from the main package
|
||||||
inputsFrom = [ (pkgs.callPackage ./default.nix { }) ];
|
inputsFrom = [ (pkgs.callPackage ./default.nix { }) ];
|
||||||
|
|
@ -20,7 +14,7 @@ in
|
||||||
bacon
|
bacon
|
||||||
nodePackages_latest.pnpm
|
nodePackages_latest.pnpm
|
||||||
surrealdb
|
surrealdb
|
||||||
libclang
|
clang
|
||||||
];
|
];
|
||||||
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath runtimeLibs}";
|
LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue