diff --git a/pkgs/applications/blockchains/whirlpool-gui/default.nix b/pkgs/applications/blockchains/whirlpool-gui/default.nix index 17b817bc61dc..9a660bb8bffb 100644 --- a/pkgs/applications/blockchains/whirlpool-gui/default.nix +++ b/pkgs/applications/blockchains/whirlpool-gui/default.nix @@ -3,6 +3,7 @@ let system = stdenv.hostPlatform.system; + electron = electron_7; in stdenv.mkDerivation rec { pname = "whirlpool-gui"; @@ -71,7 +72,7 @@ in stdenv.mkDerivation rec { ln -s "${desktopItem}/share/applications" "$out/share/applications" # wrap electron - makeWrapper '${electron_7}/bin/electron' "$out/bin/whirlpool-gui" \ + makeWrapper '${electron}/bin/electron' "$out/bin/whirlpool-gui" \ --add-flags "$out/libexec/whirlpool-gui" \ --prefix PATH : "${jre8}/bin:${tor}/bin" ''; diff --git a/pkgs/applications/editors/typora/default.nix b/pkgs/applications/editors/typora/default.nix index 1418734fba1a..049ba45f7af3 100644 --- a/pkgs/applications/editors/typora/default.nix +++ b/pkgs/applications/editors/typora/default.nix @@ -12,6 +12,9 @@ , pandoc }: +let + electron = electron_8; +in stdenv.mkDerivation rec { pname = "typora"; version = "0.9.89"; @@ -52,7 +55,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - makeWrapper ${electron_8}/bin/electron $out/bin/typora \ + makeWrapper ${electron}/bin/electron $out/bin/typora \ --add-flags $out/share/typora \ "''${gappsWrapperArgs[@]}" \ ${lib.optionalString withPandoc ''--prefix PATH : "${lib.makeBinPath [ pandoc ]}"''} \ diff --git a/pkgs/applications/misc/obinskit/default.nix b/pkgs/applications/misc/obinskit/default.nix index bbaa135f47e1..bb85c84f7ee2 100644 --- a/pkgs/applications/misc/obinskit/default.nix +++ b/pkgs/applications/misc/obinskit/default.nix @@ -16,7 +16,7 @@ let genericName = "Obinskit keyboard configurator"; categories = "Utility"; }; - + electron = electron_3; in stdenv.mkDerivation rec { pname = "obinskit"; @@ -48,7 +48,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - makeWrapper ${electron_3}/bin/electron $out/bin/${pname} \ + makeWrapper ${electron}/bin/electron $out/bin/${pname} \ --add-flags $out/opt/obinskit/resources/app.asar \ --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc.lib libxkbcommon systemd.lib xorg.libXt ]}" ''; diff --git a/pkgs/applications/misc/stretchly/default.nix b/pkgs/applications/misc/stretchly/default.nix index 87e8316c2c4f..85098b0b003c 100644 --- a/pkgs/applications/misc/stretchly/default.nix +++ b/pkgs/applications/misc/stretchly/default.nix @@ -1,8 +1,11 @@ -{ stdenv, lib, fetchurl, makeWrapper, wrapGAppsHook, electron +{ stdenv, lib, fetchurl, makeWrapper, wrapGAppsHook, electron_7 , common-updater-scripts , writeShellScript }: +let + electron = electron_7; +in stdenv.mkDerivation rec { pname = "stretchly"; version = "0.21.1"; diff --git a/pkgs/applications/misc/teleprompter/default.nix b/pkgs/applications/misc/teleprompter/default.nix index 7cca3afa764d..37b3f10329b9 100644 --- a/pkgs/applications/misc/teleprompter/default.nix +++ b/pkgs/applications/misc/teleprompter/default.nix @@ -1,5 +1,8 @@ -{ lib, stdenv, fetchurl, electron, makeDesktopItem, makeWrapper, nodePackages, autoPatchelfHook}: +{ lib, stdenv, fetchurl, electron_4, makeDesktopItem, makeWrapper, nodePackages, autoPatchelfHook}: +let + electron = electron_4; +in stdenv.mkDerivation rec { pname = "teleprompter"; version = "2.3.4"; diff --git a/pkgs/applications/networking/instant-messengers/rambox/pro.nix b/pkgs/applications/networking/instant-messengers/rambox/pro.nix index f7a904f1e361..d39091d4618e 100644 --- a/pkgs/applications/networking/instant-messengers/rambox/pro.nix +++ b/pkgs/applications/networking/instant-messengers/rambox/pro.nix @@ -1,5 +1,8 @@ -{ autoPatchelfHook, electron, fetchurl, makeDesktopItem, makeWrapper, nodePackages, nss, stdenv, xdg_utils, xorg }: +{ autoPatchelfHook, electron_4, fetchurl, makeDesktopItem, makeWrapper, nodePackages, nss, stdenv, xdg_utils, xorg }: +let + electron = electron_4; +in stdenv.mkDerivation rec { pname = "rambox-pro"; version = "1.3.2"; diff --git a/pkgs/applications/networking/openbazaar/client.nix b/pkgs/applications/networking/openbazaar/client.nix index 02e05fac6502..07f374097f24 100644 --- a/pkgs/applications/networking/openbazaar/client.nix +++ b/pkgs/applications/networking/openbazaar/client.nix @@ -8,6 +8,9 @@ , electron_6 }: +let + electron = electron_6; +in stdenv.mkDerivation rec { pname = "openbazaar-client"; version = "2.4.6"; @@ -42,7 +45,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - makeWrapper ${electron_6}/bin/electron $out/bin/${pname} \ + makeWrapper ${electron}/bin/electron $out/bin/${pname} \ --add-flags $out/share/${pname}/resources/app \ --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ gcc-unwrapped.lib ]}" ''; diff --git a/pkgs/development/tools/electron/generic.nix b/pkgs/development/tools/electron/generic.nix index 04b610dde1c5..92dd72533aef 100644 --- a/pkgs/development/tools/electron/generic.nix +++ b/pkgs/development/tools/electron/generic.nix @@ -10,6 +10,7 @@ let license = licenses.mit; maintainers = with maintainers; [ travisbhartwell manveru prusnak ]; platforms = [ "x86_64-darwin" "x86_64-linux" "i686-linux" "armv7l-linux" "aarch64-linux" ]; + knownVulnerabilities = optional (version < "6") "Electron version ${version} is EOL"; }; fetcher = vers: tag: hash: fetchurl { diff --git a/pkgs/development/tools/haskell/hyper-haskell/default.nix b/pkgs/development/tools/haskell/hyper-haskell/default.nix index 7d99a5e9a573..df889d43d463 100644 --- a/pkgs/development/tools/haskell/hyper-haskell/default.nix +++ b/pkgs/development/tools/haskell/hyper-haskell/default.nix @@ -1,9 +1,9 @@ -{ stdenv, fetchFromGitHub, jshon, electron +{ stdenv, fetchFromGitHub, jshon, electron_3 , runtimeShell, hyper-haskell-server, extra-packages ? [] }: let binPath = stdenv.lib.makeBinPath ([ hyper-haskell-server ] ++ extra-packages); - + electron = electron_3; in stdenv.mkDerivation rec { pname = "hyper-haskell"; version = "0.1.0.2"; diff --git a/pkgs/tools/misc/etcher/default.nix b/pkgs/tools/misc/etcher/default.nix index 0d2029fa3145..fec78db979c0 100644 --- a/pkgs/tools/misc/etcher/default.nix +++ b/pkgs/tools/misc/etcher/default.nix @@ -21,6 +21,8 @@ let "i686-linux" = "i386"; }."${stdenv.system}"; + electron = electron_7; + in stdenv.mkDerivation rec { @@ -69,7 +71,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - makeWrapper ${electron_7}/bin/electron $out/bin/${pname} \ + makeWrapper ${electron}/bin/electron $out/bin/${pname} \ --add-flags $out/share/${pname}/resources/app.asar \ --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ gcc-unwrapped.lib ]}" ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 64f38c726840..f8cc08e98421 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10145,7 +10145,7 @@ in inherit (callPackages ../development/tools/electron { }) electron_3 electron_4 electron_5 electron_6 electron_7 electron_8 electron_9; - electron = electron_4; + electron = electron_9; autobuild = callPackage ../development/tools/misc/autobuild { }; @@ -22536,10 +22536,7 @@ in stp = callPackage ../applications/science/logic/stp { }; - stretchly = callPackage ../applications/misc/stretchly { - # Error on launch w/electron_8 - electron = electron_7; - }; + stretchly = callPackage ../applications/misc/stretchly { }; stumpish = callPackage ../applications/window-managers/stumpish {};