Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
881 B
Nix
45 lines
881 B
Nix
{
|
|
stdenv,
|
|
electron-unwrapped,
|
|
wrapGAppsHook3,
|
|
makeWrapper,
|
|
gsettings-desktop-schemas,
|
|
glib,
|
|
gtk3,
|
|
gtk4,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "electron";
|
|
inherit (electron-unwrapped) version;
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook3
|
|
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 dist;
|
|
};
|
|
inherit (electron-unwrapped) meta;
|
|
}
|