Skip to content

discord: disable module updates with OpenASAR - #520078

Merged
jopejoe1 merged 1 commit into
NixOS:masterfrom
4evy:flameflag/push-uqxokkwwqmpt
May 16, 2026
Merged

jopejoe1 merged 1 commit into
NixOS:masterfrom
4evy:flameflag/push-uqxokkwwqmpt

Conversation

@4evy

@4evy 4evy commented May 14, 2026

Copy link
Copy Markdown
Member

Closes: #515106

When OpenASAR is enabled, Discord's module updater can try to fetch module versions as undefined and loop/fail during startup

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

When OpenASAR is enabled, Discord's module updater can try to fetch
module versions as undefined and loop/fail during startup. Set
SKIP_MODULE_UPDATE alongside SKIP_HOST_UPDATE for OpenASAR builds, and
make the helper repair existing settings files

Also quote the Darwin module staging path so app bundle names containing
spaces produce valid module symlinks
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels May 14, 2026
@jopejoe1
jopejoe1 added this pull request to the merge queue May 16, 2026
Merged via the queue into NixOS:master with commit a6b418d May 16, 2026
30 of 32 checks passed
@4evy
4evy deleted the flameflag/push-uqxokkwwqmpt branch May 16, 2026 09:13
@fxzzi

fxzzi commented May 16, 2026 •

Copy link
Copy Markdown
Member

would this not be able to be reverted with #519974 ?

since that makes discord not fall back to the old updater api

@4evy

4evy commented May 16, 2026

Copy link
Copy Markdown
Member Author

That PR is still a draft and I haven't decided on it yet. I'll have to revisit it once I have more time on my hands. If anyone wants to take this on, feel free; otherwise, I'll tackle it at my own pace

gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request May 21, 2026
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/0678d8986be1661af6bb555f3489f2fdfc31f6ff' (2026-05-05)
  → 'github:hercules-ci/flake-parts/f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb' (2026-05-13)
• Updated input 'gep-dotfiles':
    'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=0112b595a22a4a847f16e21354fec58fe303735f' (2026-05-10)
  → 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=6a2d3c7205442efc118cae8de88eeb7a5695f40f' (2026-05-20)
• Updated input 'gep-dotfiles/nix-index-database':
    'github:nix-community/nix-index-database/01466c414c7357ae2ce32be4a272a7c69e94ab5f' (2026-05-10)
  → 'github:nix-community/nix-index-database/f680e0d3c1dbefe298c423691662e238496890f2' (2026-05-17)
• Updated input 'gep-dotfiles/nvim-gep':
    'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=537f8992ee19ba500111ad5b3c5ae37623166767' (2026-05-10)
  → 'git+https://git.tchfoo.com/gepbird/nvim?ref=refs/heads/main&rev=471ee77bd404a5e3ccce8bde57756da8672dc1cf' (2026-05-16)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly':
    'github:nix-community/neovim-nightly-overlay/b9ee678fadf59b3c998e180d62f4cee0641d21d9' (2026-05-10)
  → 'github:nix-community/neovim-nightly-overlay/20bf5b156b84b3f2338a37a46d0bc69b00392cd5' (2026-05-16)
• Updated input 'gep-dotfiles/nvim-gep/neovim-nightly/neovim-src':
    'github:neovim/neovim/b44c2bdd16226f6caa5324d91f1ae9781ffdc12b' (2026-05-09)
  → 'github:neovim/neovim/d8c464a0fa8884e457d27c4f3ba2bc5ab364cc5b' (2026-05-15)
• Updated input 'gep-dotfiles/nvim-gep/nixvim':
    'github:nix-community/nixvim/7986a276960b4dfaed9bb2c3c438b5ba71ae08f1' (2026-05-05)
  → 'github:nix-community/nixvim/f83231edf4916c284484bbfe04841cdfe36f3d5b' (2026-05-16)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2f419037039a152448c5f4ae9494154753d1b399' (2026-05-09)
  → 'github:nix-community/home-manager/bd868f769a69d3b6091a1da68a75cb83a181033c' (2026-05-19)
• Updated input 'moe':
    'github:tchfoo/moe/168fe6b8f2cceca3c4012973b5dc1bd3965e13b9' (2026-04-28)
  → 'github:tchfoo/moe/170c6a3fbf9a4178a25945543a7ef6de5541a59d' (2026-05-12)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/3bcaa367d4c550d687a17ac792fd5cda214ee871' (2026-05-07)
  → 'github:NixOS/nixos-hardware/c97bc4d15bd3473dd095e8e8ba57330ab1943a77' (2026-05-20)
• Updated input 'nixos-raspberrypi':
    'github:nvmd/nixos-raspberrypi/1dc4ca5f93587932383c0b61e1753f5eed1c3bba' (2026-04-10)
  → 'github:nvmd/nixos-raspberrypi/06c6e3513e1ee64b651913193fc6ac38aa4963f5' (2026-05-17)
• Updated input 'nixos-raspberrypi/nixpkgs':
    'github:NixOS/nixpkgs/4e92bbcdb030f3b4782be4751dc08e6b6cb6ccf2' (2026-04-07)
  → 'github:NixOS/nixpkgs/d7a713c0b7e47c908258e71cba7a2d77cc8d71d5' (2026-05-14)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/549bd84d6279f9852cae6225e372cc67fb91a4c1' (2026-05-05)
  → 'github:NixOS/nixpkgs/d233902339c02a9c334e7e593de68855ad26c4cb' (2026-05-15)
• Updated input 'nixpkgs-patcher':
    'github:gepbird/nixpkgs-patcher/d8645cab832b307e06648fad2a03d96b696d2155' (2026-05-05)
  → 'github:gepbird/nixpkgs-patcher/1035997b647799694e4ac1cf217e7ee1c050bce0' (2026-05-18)
• Updated input 'nur':
    'github:nix-community/NUR/61013f3c0ae1a35da83952f535949cfd876f8a51' (2026-05-10)
  → 'github:nix-community/NUR/e24179fb258454768fb3f7a6de3c6192a215fd3a' (2026-05-20)
• Updated input 'ymstnt-dotfiles':
    'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=6b7dc640593ba3536d8951275d99713abe7f54df' (2026-05-09)
  → 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=5840c3a04b6386ab410b38a0cae4ab87de9398ee' (2026-05-19)
• Updated input 'ymstnt-dotfiles/nixpkgs-patch-brawe-origin':
    'NixOS/nixpkgs#511131'
  → 'NixOS/nixpkgs#511131'
• Added input 'ymstnt-dotfiles/nixpkgs-patch-openasar':
    'NixOS/nixpkgs#520078'
@fxzzi

fxzzi commented Jul 4, 2026

Copy link
Copy Markdown
Member

That PR is still a draft and I haven't decided on it yet. I'll have to revisit it once I have more time on my hands. If anyone wants to take this on, feel free; otherwise, I'll tackle it at my own pace

yeah that's fine, thanks for your help nonetheless. currently just using your packaged equicord in nixcord, works fine and is pretty up to date :)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

discord-canary: stuck at installing update with openasar enabled

3 participants