Skip to content

Commit

Permalink
ride: add patch to support later electron versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt authored and yayayayaka committed Jun 13, 2024
1 parent 01ce9b7 commit 27376c9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkgs/by-name/ri/ride/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
stdenv,
buildNpmPackage,
fetchFromGitHub,
fetchpatch,
substituteAll,
jq,
moreutils,
zip,
makeWrapper,
copyDesktopItems,
makeDesktopItem,
electron_27,
electron,
}:

let
Expand All @@ -30,9 +31,6 @@ let
};

platformInfo = platformInfos.${stdenv.system};

# Electron 27 is the latest version that works as of RIDE version 4.5.4097
electron = electron_27;
in
buildNpmPackage rec {
pname = "ride";
Expand All @@ -45,9 +43,15 @@ buildNpmPackage rec {
hash = "sha256-xR+HVC1JVrPkgPhIJZxdTVG52+QbanmD1c/uO5l84oc=";
};

npmDepsHash = "sha256-EG3pZkjDGBI2dDaQZ6351+oU4xfHd6HNB8eD7ErpYIg=";
npmDepsHash = "sha256-h+48/9h7/cD8woyA0UCLtzKuE9jCrfpDk6IeoDWnYik=";

patches = [
# Adds support for electron versions >=28
(fetchpatch {
name = "bump-electron-version.patch";
url = "https://github.com/Dyalog/ride/commit/de42ebbd5036cfe0c7e6604296e87cc57ac9d365.patch";
hash = "sha256-5iKSNcxOOo2fKNvy3Rv+AlH3psYhLWLWUY0l8M6mAD4=";
})
# Fix info in the "about" page, set electron version, set local-cache as zipdir
(substituteAll {
src = ./mk.patch;
Expand Down

0 comments on commit 27376c9

Please sign in to comment.