mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
electron: add libnotify to the RPATH
Electron loads libnotify dynamically via dlopen(3), which fails if it is not in the RPATH. This, in turn, breaks desktop notifications in, e.g., mattermost-desktop.
This commit is contained in:
parent
cfd6b5fc90
commit
461a23c756
@ -190,6 +190,18 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup =
|
||||
let
|
||||
libPath = lib.makeLibraryPath [
|
||||
libnotify
|
||||
];
|
||||
in
|
||||
base.postFixup + ''
|
||||
patchelf \
|
||||
--add-rpath "${libPath}" \
|
||||
$out/libexec/electron/electron
|
||||
'';
|
||||
|
||||
requiredSystemFeatures = [ "big-parallel" ];
|
||||
|
||||
passthru = {
|
||||
|
Loading…
Reference in New Issue
Block a user