diff options
author | figsoda <figsoda@pm.me> | 2023-05-26 21:48:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-26 21:48:14 -0400 |
commit | fba54af74128c908015d2a678d62ce372b7356c0 (patch) | |
tree | 144239c4c9a2863715c343eaae43f5bf573c45f8 /pkgs | |
parent | cf58ff13a3249926c0785e6ce46a08131e0f63fc (diff) | |
parent | cbb545fbba21d23e53872d9c6e1465d6d6157094 (diff) |
Merge pull request #234329 from wegank/sonic-server-refactor
sonic-server: migrate to bindgenHook
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/search/sonic-server/default.nix | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgs/servers/search/sonic-server/default.nix b/pkgs/servers/search/sonic-server/default.nix index 4eb88b7f04fdf..7d39d8cc759ac 100644 --- a/pkgs/servers/search/sonic-server/default.nix +++ b/pkgs/servers/search/sonic-server/default.nix @@ -1,7 +1,5 @@ { lib , rustPlatform -, llvmPackages -, clang , fetchFromGitHub }: @@ -21,12 +19,8 @@ rustPlatform.buildRustPackage { doCheck = false; nativeBuildInputs = [ - llvmPackages.libclang - llvmPackages.libcxxClang - clang + rustPlatform.bindgenHook ]; - LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib"; - BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion clang}/include"; postPatch = '' substituteInPlace src/main.rs --replace "./config.cfg" "$out/etc/sonic/config.cfg" |