forum
forum copied to clipboard
Electron 27 is EOL
Describe the bug Electron 27 went EOL in April: https://www.electronjs.org/docs/latest/tutorial/electron-timelines.
The desktop app is pinned on Electron 27: https://github.com/standardnotes/app/blob/main/packages/desktop/package.json#L46
My distro, nixos-unstable, reports Electron 27 as insecure and will not allow me to install without permitting the insecure package explicitly.
To Reproduce This probably doesn't mean much unless using nix, but:
- Patch and install from the
deb
release. I use an overlay to fix the declaration in the nixpkgs repository since it doesn't pin electron to version 27 and the app won't run otherwise: https://github.com/higherorderfunctor/nixos-config/blob/dotfiles/overlays/standardnotes-overlay.nix - Get the error in the screenshot section trying to install.
Expected behavior Not to get a warning about an EOL dependency.
Screenshots
error:
...
… while evaluating derivation 'standardnotes-3.194.9'
whose name attribute is located at /nix/store/qqwr649pc0qprc9lw2fmdsi1km6p7q2h-source/pkgs/stdenv/generic/make-derivation.nix:331:7
...
error: Package ‘electron-27.3.11’ in /nix/store/qqwr649pc0qprc9lw2fmdsi1km6p7q2h-source/pkgs/development/tools/electron/binary/generic.nix:36 is marked as insecure, refusing to evaluate.
Known issues:
- Electron version 27.3.11 is EOL
You can install it anyway by allowing this package, using the
following methods:
a) To temporarily allow all insecure packages, you can use an environment
variable for a single invocation of the nix tools:
$ export NIXPKGS_ALLOW_INSECURE=1
Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
then pass `--impure` in order to allow use of environment variables.
b) for `nixos-rebuild` you can add ‘electron’ to
`nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
like so:
{
nixpkgs.config.permittedInsecurePackages = [
"electron"
];
}
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
‘electron’ to `permittedInsecurePackages` in
~/.config/nixpkgs/config.nix, like so:
{
permittedInsecurePackages = [
"electron"
];
}
Desktop (please complete the following information):
Standard Notes desktop version is 3.194.9
.
cat /etc/os-release
ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20240612.57d6973"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.11 (Vicuña)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.11 (Vicuña)"
VERSION_CODENAME="vicuña"
VERSION_ID="24.11"
Additional context Permitting the insecure package explicitly can be done like so to allow it to be installed:
import nixpkgs {
inherit system;
overlays = import ./overlays {inherit inputs lib;};
config = {
allowUnfree = true;
permittedInsecurePackages = [
"electron-27.3.11" # standard notes
];
};
});