bpkg: add postInstall rpath fixup needed on darwin

This commit is contained in:
Ryan Burns 2022-10-17 20:29:30 -07:00
parent 37806ebf30
commit 6acda25af6

View File

@ -49,6 +49,10 @@ stdenv.mkDerivation rec {
"config.bin.lib=${build2.configSharedStatic enableShared enableStatic}"
];
postInstall = lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath '${lib.getLib build2}/lib' "''${!outputBin}/bin/bpkg"
'';
meta = with lib; {
description = "build2 package dependency manager";
# https://build2.org/bpkg/doc/bpkg.xhtml