Add comments on link fixes

This commit is contained in:
Vladislav Grechannik
2026-01-30 01:03:02 +01:00
committed by June Strawberry
parent 5aea9d139b
commit dbc208d5d9

View File

@@ -197,18 +197,19 @@ craneLib.buildPackage ( commonAttrs // rec {
env = buildDepsOnlyEnv; env = buildDepsOnlyEnv;
}); });
# Adds runpath settings to the resulting binary
buildInputs = (commonAttrs.buildInputs or []) ++ [ buildInputs = (commonAttrs.buildInputs or []) ++ [
rocksdb' rocksdb'
]; ];
nativeBuildInputs = (commonAttrs.nativeBuildInputs or []) ++ [ nativeBuildInputs = (commonAttrs.nativeBuildInputs or []) ++ [
autoPatchelfHook autoPatchelfHook
]; ];
# This is needed for tests to link
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
nativeCheckInputs = [ nativeCheckInputs = [
pkgsBuildHost.libredirect.hook pkgsBuildHost.libredirect.hook
]; ];
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
preCheck = preCheck =
let let