From 5c917880689a5a0146630216ba2b516f1874094f Mon Sep 17 00:00:00 2001 From: ~horin Date: Tue, 5 May 2026 16:31:22 +0800 Subject: [PATCH] fix(nix): failed to load lib (#1) --- nix/package.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nix/package.nix b/nix/package.nix index 2771cad2..e606bf74 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -1,7 +1,9 @@ { lib, + stdenv, rustPlatform, pkg-config, + autoPatchelfHook, openssl, dbus, @@ -24,12 +26,14 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config - dbus + autoPatchelfHook ]; buildInputs = [ openssl + dbus.dev dbus.lib + stdenv.cc.cc.lib ]; nativeCheckInputs = [ @@ -44,7 +48,10 @@ rustPlatform.buildRustPackage (finalAttrs: { "--package" "deepseek-tui" ]; - cargoTestFlags = finalAttrs.cargoBuildFlags; + cargoTestFlags = finalAttrs.cargoBuildFlags ++ [ + "--lib" + "--bins" + ]; preCheck = '' export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt