electron: add libsecret to RPATH

This commit is contained in:
Maximilian Marx 2024-04-16 14:54:29 +02:00
parent 945d8147f7
commit 6a0cf40cf4
No known key found for this signature in database
GPG Key ID: D981CA0FF602751D
2 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,12 @@
{ lib, stdenv, fetchurl, dpkg, makeWrapper, electron, libsecret
, desktop-file-utils , callPackage }:
{ lib
, stdenv
, fetchurl
, dpkg
, makeWrapper
, electron
, desktop-file-utils
, callPackage
}:
let
@ -33,8 +40,7 @@ stdenv.mkDerivation rec {
cp -R opt/Standard\ Notes/resources/app.asar $out/share/standardnotes/
makeWrapper ${electron}/bin/electron $out/bin/standardnotes \
--add-flags $out/share/standardnotes/app.asar \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libsecret stdenv.cc.cc.lib ]}
--add-flags $out/share/standardnotes/app.asar
${desktop-file-utils}/bin/desktop-file-install --dir $out/share/applications \
--set-key Exec --set-value standardnotes usr/share/applications/standard-notes.desktop

View File

@ -14,6 +14,7 @@
, pkgs
, pkgsBuildHost
, pipewire
, libsecret
, info
}:
@ -196,6 +197,7 @@ in (chromium.override { upstream-info = info.chromium; }).mkDerivation (base: {
libnotify
pipewire
stdenv.cc.cc.lib
libsecret
];
in
base.postFixup + ''