Skip to content

jetbrains.jdk: add darwin support#497855

Draft
Eveeifyeve wants to merge 4 commits intoNixOS:masterfrom
DigitalBrewStudios:jetbrains-jdk-darwin
Draft

jetbrains.jdk: add darwin support#497855
Eveeifyeve wants to merge 4 commits intoNixOS:masterfrom
DigitalBrewStudios:jetbrains-jdk-darwin

Conversation

@Eveeifyeve
Copy link
Member

@Eveeifyeve Eveeifyeve commented Mar 8, 2026

This adds darwin support to jetbrains.jdk.

This is currently marked broken due to it not building on darwin due to fixup issue at jcef.

Closes: #398564

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.

@Eveeifyeve
Copy link
Member Author

Eveeifyeve commented Mar 8, 2026

This is the error is for darwin:

@nix { "action": "setPhase", "phase": "fixupPhase" }
stripping java archives in /nix/store/d3bfmqx1467p72sc6azjb1lin039mm1k-jcef-jetbrains-1086
checking for references to /nix/var/nix/builds/nix-75725-4270933458/ in /nix/store/d3bfmqx1467p72sc6azjb1lin039mm1k-jcef-jetbrains-1086...
patching script interpreter paths in /nix/store/d3bfmqx1467p72sc6azjb1lin039mm1k-jcef-jetbrains-1086
Normalized /nix/store/d3bfmqx1467p72sc6azjb1lin039mm1k-jcef-jetbrains-1086/jmods/jogl.all.jmod
Normalized /nix/store/d3bfmqx1467p72sc6azjb1lin039mm1k-jcef-jetbrains-1086/jmods/jcef.jmod
Normalized /nix/store/d3bfmqx1467p72sc6azjb1lin039mm1k-jcef-jetbrains-1086/jmods/gluegen.rt.jmod
Traceback (most recent call last):
  File "/nix/store/nxzj5vxcipy1pprq3nd8v8lnc2myp6lc-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 603, in <module>
    with open_elf(interpreter_path) as interpreter:
         ~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/nix/store/8vpn383nlxg14a8y27pgdgmrjhs4sqgf-python3-3.13.12-env/lib/python3.13/contextlib.py", line 141, in __enter__
    return next(self.gen)
  File "/nix/store/nxzj5vxcipy1pprq3nd8v8lnc2myp6lc-auto-patchelf-0-unstable-2024-08-14/bin/auto-patchelf", line 30, in open_elf
    yield ELFFile(stream)
          ~~~~~~~^^^^^^^^
  File "/nix/store/8vpn383nlxg14a8y27pgdgmrjhs4sqgf-python3-3.13.12-env/lib/python3.13/site-packages/elftools/elf/elffile.py", line 73, in __init__
    self._identify_file()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/nix/store/8vpn383nlxg14a8y27pgdgmrjhs4sqgf-python3-3.13.12-env/lib/python3.13/site-packages/elftools/elf/elffile.py", line 631, in _identify_file
    elf_assert(magic == b'\x7fELF', 'Magic number does not match')
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/8vpn383nlxg14a8y27pgdgmrjhs4sqgf-python3-3.13.12-env/lib/python3.13/site-packages/elftools/common/utils.py", line 80, in elf_assert
    _assert_with_exception(cond, msg, ELFError)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/8vpn383nlxg14a8y27pgdgmrjhs4sqgf-python3-3.13.12-env/lib/python3.13/site-packages/elftools/common/utils.py", line 143, in _assert_with_exception
    raise exception_type(msg)
elftools.common.exceptions.ELFError: Magic number does not match

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 6.topic: java Including JDK, tooling, other languages, other VMs labels Mar 8, 2026
@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Mar 8, 2026
NOTE: I have added a TODO to remove x86_64 darwin support, for more info
please see NixOS#492160 about the
deprecation.
This is needed for jetbrains jdk to pass the post fixup phase
NOTE: I have added a TODO to remove x86_64 darwin support, for more info
please see NixOS#492160 about the
deprecation.
NOTE: I have added a TODO to remove x86_64 darwin support, for more info
please see NixOS#492160 about the
deprecation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: java Including JDK, tooling, other languages, other VMs 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant