about summary refs log tree commit diff
path: root/pkgs/tools/networking/bore
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-28 02:40:50 +0300
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-05-28 02:40:50 +0300
commit83a615f695688887f0a77803c48736898188115a (patch)
tree60ee6261642cf1231b7447833e72b3c011a1e9d5 /pkgs/tools/networking/bore
parent1a89cfae1f0fa83238ffdabf4f06dd435bd45108 (diff)
bore: fix build on darwin
Diffstat (limited to 'pkgs/tools/networking/bore')
-rw-r--r--pkgs/tools/networking/bore/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/tools/networking/bore/default.nix b/pkgs/tools/networking/bore/default.nix
index e7934428a958d..c3ae784668906 100644
--- a/pkgs/tools/networking/bore/default.nix
+++ b/pkgs/tools/networking/bore/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, rustPlatform, fetchFromBitbucket, llvmPackages, Libsystem, SystemConfiguration, installShellFiles }:
+{ lib, stdenv, rustPlatform, fetchFromBitbucket, Libsystem, SystemConfiguration, installShellFiles }:
 
 rustPlatform.buildRustPackage rec {
   pname = "bore";
@@ -14,20 +14,21 @@ rustPlatform.buildRustPackage rec {
   cargoSha256 = "1xlbfzmy0wjyz3jpr17r4ma4i79d9b32yqwwi10vrcjzr7vsyhmx";
   cargoBuildFlags = [ "-p" pname ];
 
+  # error[E0793]: reference to packed field is unaligned
+  doCheck = !stdenv.isDarwin;
+
   # FIXME can’t test --all-targets and --doc in a single invocation
   cargoTestFlags = [ "--all-targets" "--workspace" ];
   checkFeatures = [ "std" ];
 
   nativeBuildInputs = [ installShellFiles ]
-    ++ lib.optional stdenv.isDarwin llvmPackages.libclang;
+    ++ lib.optional stdenv.isDarwin rustPlatform.bindgenHook;
 
   buildInputs = lib.optionals stdenv.isDarwin [
     Libsystem
     SystemConfiguration
   ];
 
-  LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
-
   postInstall = ''
     installManPage $src/bore/doc/bore.1
   '';