Unverified Commit 6a0cf40c authored by Maximilian Marx's avatar Maximilian Marx
Browse files

electron: add libsecret to RPATH

parent 945d8147
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
{ 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
+2 −0
Original line number Diff line number Diff line
@@ -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 + ''