blob: 5ecb0387b6a8885a13fc48858cc1d09491ac3960 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ stdenv
, electron-unwrapped
, wrapGAppsHook
, makeWrapper
, gsettings-desktop-schemas
, glib
, gtk3
, gtk4
}:
stdenv.mkDerivation {
pname = "electron";
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[@]}" \
--set CHROME_DEVEL_SANDBOX $out/libexec/electron/chrome-sandbox
ln -s ${electron-unwrapped}/libexec $out/libexec
'';
passthru = {
unwrapped = electron-unwrapped;
inherit (electron-unwrapped) headers;
};
inherit (electron-unwrapped) meta;
}
|