Skip to content

zulip: build package from source#279545

Merged
JohnRTitor merged 1 commit intoNixOS:masterfrom
nbdd0121:zulip
Dec 6, 2024
Merged

zulip: build package from source#279545
JohnRTitor merged 1 commit intoNixOS:masterfrom
nbdd0121:zulip

Conversation

@nbdd0121
Copy link
Member

@nbdd0121 nbdd0121 commented Jan 8, 2024

Description of changes

Currently this uses AppImage which comes with its own electron. This is not ideal since:

  • we have to run it under bubblewrap and FHS
  • it suffers from "too many electrons" issue
  • we are relying upstream to bump electron version for bugfixes

It's not very difficult to build it from source anyway.

After this PR the package size (excluding dependencies) is reduced from 160M to 16M.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot requested review from andersk and jonafato January 8, 2024 08:51
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Jan 8, 2024
Copy link
Contributor

@andersk andersk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. It doesn’t work as written though.

@andersk
Copy link
Contributor

andersk commented Jan 9, 2024

I’ve updated the app for Electron 28. Let’s merge that first so we can use the version of Electron the app expects:

@nbdd0121
Copy link
Member Author

@andersk could you take another look?

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 5, 2024
@flandweber
Copy link
Contributor

lgtm, not familiar with electron though

@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 5, 2024
Copy link
Contributor

@andersk andersk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good.

@nbdd0121 nbdd0121 force-pushed the zulip branch 2 times, most recently from 66e062f to c9c4f25 Compare November 8, 2024 23:53
@ofborg ofborg bot requested a review from andersk November 9, 2024 08:15
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2024
@andersk andersk added 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Nov 11, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 11, 2024
@ofborg ofborg bot requested a review from andersk November 11, 2024 23:22
@nbdd0121
Copy link
Member Author

nbdd0121 commented Dec 1, 2024

Rebased to resolve conflict with #358620

@ofborg ofborg bot requested a review from andersk December 2, 2024 05:16
@github-actions github-actions bot removed the 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. label Dec 6, 2024
Currently this uses AppImage which comes with its own electron and
then we run it under FHS. This is not ideal since:
* it suffers from "too many electrons" issue
* we are relying upstream to bump electron version for bugfixes

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Dec 6, 2024

Backport failed for release-24.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-24.11
git worktree add -d .worktree/backport-279545-to-release-24.11 origin/release-24.11
cd .worktree/backport-279545-to-release-24.11
git switch --create backport-279545-to-release-24.11
git cherry-pick -x 2160e7db923d9ded9787975891de5dfd07192961

1 similar comment
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Dec 6, 2024

Backport failed for release-24.11, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-24.11
git worktree add -d .worktree/backport-279545-to-release-24.11 origin/release-24.11
cd .worktree/backport-279545-to-release-24.11
git switch --create backport-279545-to-release-24.11
git cherry-pick -x 2160e7db923d9ded9787975891de5dfd07192961

@JohnRTitor JohnRTitor mentioned this pull request Dec 7, 2024
13 tasks
nbdd0121 added a commit to nbdd0121/nixpkgs that referenced this pull request Dec 10, 2024
Currently this uses AppImage which comes with its own electron and
then we run it under FHS. This is not ideal since:
* it suffers from "too many electrons" issue
* we are relying upstream to bump electron version for bugfixes

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
(cherry picked from commit 2160e7d)
@andersk andersk mentioned this pull request Mar 10, 2025
13 tasks
@andersk andersk mentioned this pull request Mar 17, 2025
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants