Skip to content

meshcentral: rewrite with buildNpmPackage#493026

Open
doronbehar wants to merge 3 commits intoNixOS:masterfrom
doronbehar:pkg/meshcentral
Open

meshcentral: rewrite with buildNpmPackage#493026
doronbehar wants to merge 3 commits intoNixOS:masterfrom
doronbehar:pkg/meshcentral

Conversation

@doronbehar
Copy link
Copy Markdown
Contributor

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.

@doronbehar doronbehar requested review from Ma27 and pyrox0 February 22, 2026 13:15
@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. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Feb 22, 2026
Copy link
Copy Markdown
Member

@pyrox0 pyrox0 left a comment

Choose a reason for hiding this comment

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

Changes lgtm but I'm not a user and have no way of testing this.

@doronbehar
Copy link
Copy Markdown
Contributor Author

Changes lgtm but I'm not a user and have no way of testing this.

Thanks for the approval. I guess @Ma27 is the only user really running this, so he is the only user that can actually approve this.

@doronbehar doronbehar mentioned this pull request Feb 22, 2026
2 tasks
@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Feb 27, 2026
@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Feb 28, 2026

@doronbehar would you mind going to https://github.com/Ylianst/MeshCentral/releases/tag/1.1.57 which makes having our own package-lock.json obsolete?

@doronbehar
Copy link
Copy Markdown
Contributor Author

@doronbehar would you mind going to Ylianst/MeshCentral@1.1.57 (release) which makes having our own package-lock.json obsolete?

Sure, done. Thanks for notifying about this.

@doronbehar
Copy link
Copy Markdown
Contributor Author

Also fixed merge conflicts with 9e77da8 .

@nixpkgs-ci nixpkgs-ci bot added 8.has: package (update) This PR updates a package to a newer version and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 1, 2026
awk <meshcentral.js "
BEGIN { RS=\"[\n;]\" }
match(\$0, /(modules|passport) = (\[.*\])$/, a) { print a[2] }
match(\$0, /(modules|passport).push\(('[^)]+')\)/, a) { print \"[\" a[2] \"]\" }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh yeah, we have to add this by hand to package.json, otherwise it tries to install it at runtime 🫠

@doronbehar
Copy link
Copy Markdown
Contributor Author

OK This was a bit tricky, as nodejs_22 had to be used, I created:

So let's see how they will reply. In the meantime I manually include it in the build. @Ma27 could you please verify it works for you now?

@doronbehar
Copy link
Copy Markdown
Contributor Author

@Ma27 it was harder then I thought to persuade upstream to track these optional dependencies in their package-lock.json:

However I'm still a bit optimistic, and currently I have to wait for them to discuss it with the community. Hence I marked this PR as a draft.

Still though, the PR in it's current state is functional, and I'd really like to get the acknowledgment that it works for you and doesn't try to install optional dependencies during runtime. So one more test would be great, please 🙏.

@doronbehar doronbehar marked this pull request as draft March 10, 2026 09:45
@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Mar 13, 2026

This is looking pretty good now, thanks for putting the effort into this!

@doronbehar
Copy link
Copy Markdown
Contributor Author

This is looking pretty good now, thanks for putting the effort into this!

Thanks for taking a look, but have you tested that it works?

@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Mar 13, 2026

Thanks for taking a look, but have you tested that it works?

Sorry for not being explicit, yes I have tested that it behaves correctly, as deployed this to an instance and ensured that connections to other machiens work.

@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Mar 17, 2026
@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Mar 27, 2026

@doronbehar any reason this is still a draft?

@doronbehar
Copy link
Copy Markdown
Contributor Author

@doronbehar any reason this is still a draft?

Meshcentral developers and users had a meeting online on Thursday (see this list of meetings). I joined this meeting and expressed our concerns regarding them tracking the optional dependencies in the package-lock.json file. They were sort of convinced this is the correct thing to do, but there are still some open questions they are not sure about. Hence I'm not expecting anytime soon that they will start tracking the optional dependencies in package-lock.json, but I'm optimistic.

Hence I guess we can merge it pretty much as is (I edited the comment near the optional dependencies patch, and rebased upon latest master).

@doronbehar doronbehar marked this pull request as ready for review March 29, 2026 14:53
@doronbehar doronbehar requested a review from Ma27 March 29, 2026 14:53
@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Mar 29, 2026
@doronbehar doronbehar moved this to In Progress in Node.js Team Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package 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.

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants