From dbc208d5d9f05751f6305405e5d615e7aaf608d0 Mon Sep 17 00:00:00 2001 From: Vladislav Grechannik Date: Fri, 30 Jan 2026 01:03:02 +0100 Subject: [PATCH] Add comments on link fixes --- nix/pkgs/main/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/pkgs/main/default.nix b/nix/pkgs/main/default.nix index aa4307ef..7a92dba8 100644 --- a/nix/pkgs/main/default.nix +++ b/nix/pkgs/main/default.nix @@ -197,18 +197,19 @@ craneLib.buildPackage ( commonAttrs // rec { env = buildDepsOnlyEnv; }); + # Adds runpath settings to the resulting binary buildInputs = (commonAttrs.buildInputs or []) ++ [ rocksdb' ]; - nativeBuildInputs = (commonAttrs.nativeBuildInputs or []) ++ [ autoPatchelfHook ]; + # This is needed for tests to link + LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; nativeCheckInputs = [ pkgsBuildHost.libredirect.hook ]; - LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; preCheck = let