thunderbird: Patch rpath to find libudev, which is part of systemd.

This commit is contained in:
Irene Knapp 2020-06-13 15:59:38 -07:00
parent f26e514cfe
commit ac45656b12
No known key found for this signature in database
GPG Key ID: E457C097BEB7A005

View File

@ -43,6 +43,7 @@
, rustc , rustc
, sqlite , sqlite
, stdenv , stdenv
, systemd
, unzip , unzip
, which , which
, writeScript , writeScript
@ -305,11 +306,11 @@ stdenv.mkDerivation rec {
) )
''; '';
# FIXME: This can probably be removed as soon as we package a # FIXME: The XUL portion of this can probably be removed as soon as we
# Thunderbird >=71.0 since XUL shouldn't be anymore (in use)? # package a Thunderbird >=71.0 since XUL shouldn't be anymore (in use)?
postFixup = '' postFixup = ''
local xul="$out/lib/thunderbird/libxul.so" local xul="$out/lib/thunderbird/libxul.so"
patchelf --set-rpath "${libnotify}/lib:$(patchelf --print-rpath $xul)" $xul patchelf --set-rpath "${libnotify}/lib:${systemd.lib}/lib:$(patchelf --print-rpath $xul)" $xul
''; '';
doInstallCheck = true; doInstallCheck = true;