Skip to content

nodejs: move configure flags to a separate variable#317109

Closed
tie wants to merge 1 commit intoNixOS:masterfrom
tie:node-cross-configure-flags
Closed

nodejs: move configure flags to a separate variable#317109
tie wants to merge 1 commit intoNixOS:masterfrom
tie:node-cross-configure-flags

Conversation

@tie
Copy link
Member

@tie tie commented Jun 4, 2024

Description of changes

Minor syntatic cleanup for the configureFlags list. Does not change derivations.

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.11 Release Notes (or backporting 23.11 and 24.05 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.

Minor syntatic cleanup for the configureFlags list. Does not change
derivations.
@github-actions github-actions bot added the 6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment label Jun 4, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 4, 2024
@tie tie marked this pull request as ready for review June 4, 2024 12:55
@tie tie requested review from aduh95, cillianderoiste and cko June 4, 2024 12:55
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 4, 2024
@tie tie added the 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. label Jun 8, 2024
@tie tie mentioned this pull request Jul 16, 2024
16 tasks
in
[
"--cross-compiling"
"--dest-cpu=${let platform = stdenv.hostPlatform; in
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"--dest-cpu=${let platform = stdenv.hostPlatform; in
"--dest-cpu=${

else if platform.isx86_32 then "x86"
else if platform.isS390 && platform.is64bit then "s390x"
else if platform.isRiscV && platform.is64bit then "riscv64"
else throw "unsupported cpu ${stdenv.hostPlatform.uname.processor}"}"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
else throw "unsupported cpu ${stdenv.hostPlatform.uname.processor}"}"
else throw "unsupported cpu ${platform.uname.processor}"}"

@tie
Copy link
Member Author

tie commented Jul 21, 2024

@pbsds, thanks for review. This PR is superseded by #327653 that incorporates these changes in a larger refactor.
I’m closing this PR to avoid confusion, sorry for not doing this earlier.

@tie tie closed this Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nodejs Node.js is a free, open-source, cross-platform JavaScript runtime environment 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any 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.

4 participants