Skip to content

Comments

beamPackages.mixRelease: symlink mixFodDeps with MIX_DEPS_PATH#434632

Merged
adamcstephens merged 1 commit intoNixOS:masterfrom
Prince213:push-vuzlqnkuqnlw
Aug 20, 2025
Merged

beamPackages.mixRelease: symlink mixFodDeps with MIX_DEPS_PATH#434632
adamcstephens merged 1 commit intoNixOS:masterfrom
Prince213:push-vuzlqnkuqnlw

Conversation

@Prince213
Copy link
Member

The build is normally done in $TMPDIR/build1, so ../deps is the same as $MIX_DEPS_PATH. But this doesn't hold for nix develop, where build is generally not in $TMPDIR, which will cause the symlink to be invalid. We now use $MIX_DEPS_PATH directly which will always be valid.

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.

Footnotes

  1. https://nix.dev/manual/nix/2.30/store/building.html#builder-execution

@Prince213 Prince213 added the 6.topic: erlang General-purpose, concurrent, functional high-level programming language label Aug 18, 2025
@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. labels Aug 18, 2025
@happysalada
Copy link
Contributor

This change looks good, can you run a nixpkgs review by any chance ?

@Prince213
Copy link
Member Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 434632

Logs: https://github.com/Prince213/nixpkgs-review-gha/actions/runs/17086533916


x86_64-linux

✅ 15 packages built:
  • akkoma
  • beam26Packages.ex_doc
  • ex_doc (beam27Packages.ex_doc)
  • beam28Packages.ex_doc
  • beamMinimal26Packages.ex_doc
  • beamMinimal27Packages.ex_doc
  • beamMinimal28Packages.ex_doc
  • firezone-server (firezone-server-domain)
  • firezone-server-api
  • firezone-server-web
  • lexical
  • livebook
  • next-ls
  • plausible
  • protoc-gen-elixir

aarch64-linux

✅ 15 packages built:
  • akkoma
  • beam26Packages.ex_doc
  • ex_doc (beam27Packages.ex_doc)
  • beam28Packages.ex_doc
  • beamMinimal26Packages.ex_doc
  • beamMinimal27Packages.ex_doc
  • beamMinimal28Packages.ex_doc
  • firezone-server (firezone-server-domain)
  • firezone-server-api
  • firezone-server-web
  • lexical
  • livebook
  • next-ls
  • plausible
  • protoc-gen-elixir

x86_64-darwin (sandbox = true)

❌ 10 packages failed to build:
  • beam26Packages.ex_doc
  • ex_doc (beam27Packages.ex_doc)
  • beam28Packages.ex_doc
  • beamMinimal26Packages.ex_doc
  • beamMinimal27Packages.ex_doc
  • beamMinimal28Packages.ex_doc
  • livebook
  • next-ls
  • plausible
  • protoc-gen-elixir
✅ 2 packages built:
  • akkoma
  • lexical

Error logs: `x86_64-darwin`
beam26Packages.ex_doc
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/fk3bkyqgwc2mr24xxmz0in7pwgf79qa5-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
livebook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/acqd8d8hhqkrcgvg9gwihpv805hspjky-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
next-ls
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/218w9qjikm4wd3zrl7pmirjhp1zgld0c-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
plausible
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/w8ffdla3glr4dkbkclkcc9nd0dw18kkn-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
protoc-gen-elixir
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/893hsr3fx91dg11dr4fz6h4xabc06i69-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm

aarch64-darwin (sandbox = true)

❌ 10 packages failed to build:
  • beam26Packages.ex_doc
  • ex_doc (beam27Packages.ex_doc)
  • beam28Packages.ex_doc
  • beamMinimal26Packages.ex_doc
  • beamMinimal27Packages.ex_doc
  • beamMinimal28Packages.ex_doc
  • livebook
  • next-ls
  • plausible
  • protoc-gen-elixir
✅ 2 packages built:
  • akkoma
  • lexical

Error logs: `aarch64-darwin`
beam26Packages.ex_doc
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/fk3bkyqgwc2mr24xxmz0in7pwgf79qa5-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
livebook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/acqd8d8hhqkrcgvg9gwihpv805hspjky-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
next-ls
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/218w9qjikm4wd3zrl7pmirjhp1zgld0c-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
plausible
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/w8ffdla3glr4dkbkclkcc9nd0dw18kkn-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm
protoc-gen-elixir
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/893hsr3fx91dg11dr4fz6h4xabc06i69-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
** (Mix) failed to open a TCP socket while acquiring a lock, reason: :eperm

@Prince213
Copy link
Member Author

Prince213 commented Aug 20, 2025

The failures seem to be unrelated.

Copy link
Contributor

@adamcstephens adamcstephens left a comment

Choose a reason for hiding this comment

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

Not sure the value in running with the MacOS sandbox in that action, since Hydra doesn't use the sandbox either and it has known issues.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 434632
Commit: 25a4bf11b3e8ed458ee7acedb2cd6552d7001229


aarch64-darwin

✅ 12 packages built:
  • akkoma
  • beam26Packages.ex_doc
  • ex_doc (beam27Packages.ex_doc)
  • beam28Packages.ex_doc
  • beamMinimal26Packages.ex_doc
  • beamMinimal27Packages.ex_doc
  • beamMinimal28Packages.ex_doc
  • lexical
  • livebook
  • next-ls
  • plausible
  • protoc-gen-elixir

@adamcstephens adamcstephens merged commit 1101fb5 into NixOS:master Aug 20, 2025
29 of 31 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Aug 20, 2025

Successfully created backport PR for release-25.05:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: erlang General-purpose, concurrent, functional high-level programming language 8.has: port to stable This PR already has a backport to the stable release. 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.

3 participants