electron: fix GSETTINGS_SCHEMAS_PATH (#259157)

This commit is contained in:
Yureka 2023-10-05 20:06:37 +02:00 committed by GitHub
parent 1c3ce8471d
commit 99515b5c50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,10 @@
, electron-unwrapped
, wrapGAppsHook
, makeWrapper
, gsettings-desktop-schemas
, glib
, gtk3
, gtk4
}:
stdenv.mkDerivation {
@ -9,9 +13,14 @@ stdenv.mkDerivation {
inherit (electron-unwrapped) version;
nativeBuildInputs = [ wrapGAppsHook makeWrapper ];
buildInputs = [
# needed for GSETTINGS_SCHEMAS_PATH
gsettings-desktop-schemas glib gtk3 gtk4
];
dontWrapGApps = true;
buildCommand = ''
gappsWrapperArgsHook
mkdir -p $out/bin
makeWrapper "${electron-unwrapped}/libexec/electron/electron" "$out/bin/electron" \
"''${gappsWrapperArgs[@]}" \