Skip to content

meshcentral: cleanup#460508

Closed
pyrox0 wants to merge 1 commit intoNixOS:masterfrom
pyrox0:fix/meshcentral
Closed

meshcentral: cleanup#460508
pyrox0 wants to merge 1 commit intoNixOS:masterfrom
pyrox0:fix/meshcentral

Conversation

@pyrox0
Copy link
Copy Markdown
Member

@pyrox0 pyrox0 commented Nov 11, 2025

Removes usage of mkYarnPackage, the package.json file, and updates the updateScript to account for this.

Also just some simple modernization to go along with it.

Part of #324246

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.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci bot requested a review from Ma27 November 11, 2025 00:12
@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. labels Nov 11, 2025
@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Nov 11, 2025

Last time we tried this, there were reasons against doign that that I have to look up.
Doesn't mean we shouldn't do it, but please wait with merging until I found time to test this on my personal instance.

@pyrox0
Copy link
Copy Markdown
Member Author

pyrox0 commented Nov 11, 2025

wasn't planning to merge without approval from a maintainer! will mark as draft, feel free to mark as ready tor review once you have feedback

@pyrox0 pyrox0 marked this pull request as draft November 11, 2025 07:46
@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Nov 29, 2025

Can you rebase against master, please?
Will try this out in the next few days hopefully.

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 29, 2025
@Ma27
Copy link
Copy Markdown
Member

Ma27 commented Nov 30, 2025

Did you pull latest master? Because the only merge-conflicting patch I'm aware of is still not on this branch (update to 1.1.54).

@pyrox0
Copy link
Copy Markdown
Member Author

pyrox0 commented Dec 1, 2025

Thought I had, but git fetch must not have gotten itself worked out. Solved.

Removes usage of mkYarnPackage, the package.json file, and updates the
updateScript to account for this.

Also just some simple modernization to go along with it.
@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 1, 2025
Copy link
Copy Markdown
Member

@Ma27 Ma27 left a comment

Choose a reason for hiding this comment

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

I'm not sure I understand where this is coming from, but $out/bin/meshcentral does

#! /usr/bin/env node
require("../meshcentral.js");

which means the service is a no-op now because the included file does

if (require.main === module) {
    mainStart(); // Called directly, launch normally.
} else {
    module.exports.mainStart = mainStart; // Required as a module, useful for winservice.js
}

i.e. we get the main module, but it's never invoked and thus the service exits immediately.

Do you have an idea where this is coming from?

Also, the nodejs version is inconsistent. I kinda wonder if we should just go to v22 as I don't find any documented constraints anyways 🤷

Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Dec 21, 2025
Closes NixOS#472246

While there's a refactoring of the package ongoing (NixOS#460508), the fix is
trivial enough.
Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Dec 21, 2025
Closes NixOS#472246

While there's a refactoring of the package ongoing (NixOS#460508), the fix is
trivial enough.
@Ma27 Ma27 mentioned this pull request Dec 21, 2025
13 tasks
nixpkgs-ci bot pushed a commit that referenced this pull request Dec 22, 2025
Closes #472246

While there's a refactoring of the package ongoing (#460508), the fix is
trivial enough.

(cherry picked from commit 232fe85)
@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 27, 2025
gonsolo pushed a commit to gonsolo/nixpkgs that referenced this pull request Jan 6, 2026
Closes NixOS#472246

While there's a refactoring of the package ongoing (NixOS#460508), the fix is
trivial enough.
pseudocc pushed a commit to pseudocc/nixpkgs that referenced this pull request Jan 9, 2026
Closes NixOS#472246

While there's a refactoring of the package ongoing (NixOS#460508), the fix is
trivial enough.

(cherry picked from commit 232fe85)
@doronbehar
Copy link
Copy Markdown
Contributor

Here's my updated fix:

@pyrox0 pyrox0 closed this Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants