fix: only run patchelf on linux

This commit is contained in:
Henry-Hiles
2026-04-08 12:16:30 -04:00
committed by Ellis Git
parent 2ab177f100
commit 379ef5014c

View File

@@ -44,7 +44,7 @@ craneLib.buildPackage (
cargoArtifacts = craneLib.buildDepsOnly attrs;
# Needed to make continuwuity link to rocksdb
postFixup = ''
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
old_rpath="$(patchelf --print-rpath $out/bin/conduwuit)"
extra_rpath="${
lib.makeLibraryPath [