Skip to content

Commit

Permalink
[24.05] webtorrent_desktop: update and use latest electron (#337797)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Aug 27, 2024
2 parents 80d50ab + 6a7538a commit f7575f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 6 additions & 10 deletions pkgs/applications/video/webtorrent_desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,22 @@

buildNpmPackage {
pname = "webtorrent-desktop";
version = "0.25-pre-1eb612";
version = "0.25-pre-ac7f16";
src = fetchFromGitHub {
owner = "webtorrent";
repo = "webtorrent-desktop";
rev = "1eb61201d6360698a2cc4ea72bf0fa7ee78b457c";
sha256 = "sha256-DBEFOamncyidMXypvKNnUmDIPUq1LzYjDgox7fa4+Gg=";
rev = "ac7f16e71c96c5ad670bfcb8728df5af78ae21a1";
sha256 = "sha256-UEN5NhLVSQEO8rsiTW1hJPjNFL9KobW/Bho98FzKaf4=";
};
patches = [
# electron 27 fix
(fetchpatch {
url = "https://github.com/webtorrent/webtorrent-desktop/pull/2388.patch";
hash = "sha256-gam5oAZtsaiCNFwecA5ff0nhraySLx3SOHlb/js+cPM=";
})
# startup fix
(fetchpatch {
url = "https://github.com/webtorrent/webtorrent-desktop/pull/2389.patch";
name = "2389.patch"; # https://github.com/webtorrent/webtorrent-desktop/pull/2389
url = "https://github.com/webtorrent/webtorrent-desktop/commit/407046d150ed7ff876a5e1978f68630e9c8f0074.patch";
hash = "sha256-hBJGLNNjcGRhYOFlLm/RL0po+70tEeJtR6Y/CfacPAI=";
})
];
npmDepsHash = "sha256-tqhp3jDb1xtyV/n9kJtzkiznLQfqeYWeZiTnTVV0ibE=";
npmDepsHash = "sha256-otAes6GkqoAVvfeWhWgyY4IVZIZxw3WtkrVdEWIk1Lk=";
makeCacheWritable = true;
npmRebuildFlags = [ "--ignore-scripts" ];
installPhase = ''
Expand Down
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35388,9 +35388,7 @@ with pkgs;

webssh = with python3Packages; toPythonApplication webssh;

webtorrent_desktop = callPackage ../applications/video/webtorrent_desktop {
electron = electron_27;
};
webtorrent_desktop = callPackage ../applications/video/webtorrent_desktop { };

wrapWeechat = callPackage ../applications/networking/irc/weechat/wrapper.nix { };

Expand Down

0 comments on commit f7575f0

Please sign in to comment.