Commit Graph

447 Commits

Author SHA1 Message Date
Adam C. Stephens
3ce8806f8a livebook: move under beam modules (#435390) 2025-08-25 09:03:41 -04:00
R. Ryantm
97f724bc0a beam26Packages.ex_doc: 0.38.2 -> 0.38.3 2025-08-21 19:17:42 +00:00
Adam C. Stephens
ecd64d0153 beamPackages.livebook: add beam team 2025-08-20 16:46:59 -04:00
Adam C. Stephens
03f1659390 livebook: move under beam modules 2025-08-20 16:25:38 -04:00
Adam C. Stephens
1101fb51d9 beamPackages.mixRelease: symlink mixFodDeps with MIX_DEPS_PATH (#434632) 2025-08-20 09:45:15 -04:00
Asherah Connor
bccaba9e26 buildRebar3: add erlangDeterministicBuilds
The motivation is similar to (and implementation taken partly from)
#271288 --- some rebar3-compiled `.beam` files contain debug information
exposing references to `.hrl` files from the Erlang distribution it
was compiled with.  This results in unnecessary store references.

See also #423588's change to Elixir's `generic-builder.nix` where the
same option is used when building to avoid the same issue.
2025-08-18 19:36:53 +10:00
Asherah Connor
c81c8af1b9 buildRebar3: remove enableDebugInfo attr
debugInfoFlag is no longer referenced by anything, as of
aef59d8856.
2025-08-18 19:20:34 +10:00
Sizhe Zhao
25a4bf11b3 beamPackages.mixRelease: symlink mixFodDeps with MIX_DEPS_PATH 2025-08-18 11:30:22 +08:00
Asherah Connor
6c8c88c622 buildMix: default to removing target config
See previous discussion at https://github.com/NixOS/nixpkgs/pull/429770.
cc @adamcstephens.

This is equivalent to giving `appConfigPath` an empty directory, but
expresses intent better (and doesn't require throwing an empty directory
into the store).

The Elixir ecosystem assumes [1] that dependencies are compiled without
their config; the `config/` directory is therefore used in library-only
projects to supply config values only intended for use when _developing_
them.  This leads to errors only seen in Nix when compile-time config
lacks runtime equivalents in end-user applications (per the whole
conversation at [1]).

Right now, the only way to get `buildMix` to build without config is to
manually remove the target's config directory in a hook/override, or (as
above) give `appConfigPath` an empty directory.  This PR adds a clearer
mechanism, and makes it the default.

[1] https://github.com/dashbitco/lazy_html/pull/11#issuecomment-3138715485

Tested with a `mix2nix`-using package that this functions as expected,
and with some `deps_nix`-using ones that `appConfigPath` still does too.
2025-08-02 12:52:16 +10:00
Adam C. Stephens
b4eee17286 elixir-ls: fix elixir executable in path 2025-07-24 10:07:27 -04:00
Adam C. Stephens
5792bd6016 elixir-ls: force local installation (#427805) 2025-07-24 09:17:22 -04:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Adam C. Stephens
b051a144dc elixir-ls: force local installation 2025-07-23 13:03:43 -04:00
Wolfgang Walther
78790dabd9 nixfmt[-rfc-style]: unstable -> 1.0.0 (#425068) 2025-07-18 17:40:43 +00:00
Silvan Mosberger
b68cc636d3 treewide: Remove nixfmt-rfc-style from update script shebangs
Based on the Nixpkgs used and the version of nixfmt-rfc-style in that
version, it's likely that not the correct version is used.

Update scripts should instead run within a Nixpkgs development shell
(`nix-shell`/`nix develop`/`direnv`), where the correct version of
`nixfmt` (although `treefmt` should be preferred) is always available.
2025-07-15 23:27:22 +02:00
Adam C. Stephens
2b32c9ad86 elixir-ls: explicitly load elixir stdlib path 2025-07-14 11:28:05 -04:00
R. Ryantm
f50a329839 beam26Packages.hex: 2.2.1 -> 2.2.2 2025-06-27 21:53:17 +00:00
R. Ryantm
0ead409018 beam26Packages.elvis-erlang: 4.0.0 -> 4.1.1 2025-06-22 13:11:07 +00:00
R. Ryantm
f84733c433 beam26Packages.erlfmt: 1.6.2 -> 1.7.0 2025-06-13 14:25:45 +00:00
Adam C. Stephens
e80ca86dd9 elixir_1_19: init at 1.19.0-rc.0
https://github.com/elixir-lang/elixir/releases/tag/v1.19.0-rc.0
2025-06-10 09:02:57 -04:00
Peder Bergebakken Sundt
97262ee871 treewide: replace stdenv.is with stdenv.hostPlatform.is 2025-06-04 19:01:03 +02:00
R. Ryantm
2bdf5120fc beam26Packages.ex_doc: 0.38.1 -> 0.38.2 2025-05-31 21:27:02 +00:00
R. Ryantm
def4373ad7 beam26Packages.elixir-ls: 0.27.2 -> 0.28.1 2025-05-25 16:05:48 +00:00
R. Ryantm
b80b9914ac beam26Packages.ex_doc: 0.38.0 -> 0.38.1 2025-05-21 05:40:22 +00:00
Adam C. Stephens
b376e679bc buildMix: use . instead of glob pattern for copying source (#408195) 2025-05-18 19:34:45 -04:00
Luke Bailey
f1cb7effb5 buildMix: use . instead of glob pattern for copying source
buildMix currently uses $src/* when copying source files into $out.
However, this does not include important hidden files like
`.formatter.exs` which contains custom package formatters, for example.
2025-05-18 00:24:39 +01:00
R. Ryantm
4e4d97aa54 beam26Packages.hex: 2.1.1 -> 2.2.1 2025-05-12 15:20:00 +00:00
R. Ryantm
62dac8ab6a beam26Packages.ex_doc: 0.37.3 -> 0.38.0 2025-05-10 11:16:06 +00:00
Mathew Polzin
a5f67e6ba9 beamPackages.ex_doc: use mixRelease escriptBinName 2025-05-05 12:23:52 -05:00
Mathew Polzin
17ebe93f77 beamPackages.mixRelease: support escript properly 2025-05-05 12:23:52 -05:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
R. Ryantm
c56c5bc33e beam26Packages.erlfmt: 1.6.1 -> 1.6.2 2025-04-25 10:58:24 -04:00
R. Ryantm
bafe946fc9 beam26Packages.elvis-erlang: 3.2.6 -> 4.0.0 2025-04-14 12:36:37 -04:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
R. Ryantm
4bbc09a1d0 beam26Packages.erlfmt: 1.6.0 -> 1.6.1 2025-04-04 14:41:15 +00:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
R. Ryantm
22782bd04b beam26Packages.elixir-ls: 0.27.1 -> 0.27.2 2025-03-29 17:29:17 +00:00
Adam C. Stephens
c8ea358454 beam26Packages.ex_doc: 0.37.2 -> 0.37.3 (#387767) 2025-03-06 22:14:32 -05:00
Adam C. Stephens
408f1f1ac6 beamPackages.ex_doc: add erlang builds to tests 2025-03-06 21:38:36 -05:00
R. Ryantm
1a82a80a81 beam26Packages.ex_doc: 0.37.2 -> 0.37.3 2025-03-06 23:29:47 +00:00
R. Ryantm
9f0d4660f1 beam26Packages.elixir-ls: 0.26.4 -> 0.27.1 2025-03-06 23:23:32 +00:00
Adam C. Stephens
a293bbb210 beam: fix locale errors on darwin
C.UTF-8 is non-standard and generates errors such as:

bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8): Bad file descriptor
2025-03-01 17:53:23 -05:00
R. Ryantm
116c2a73e0 beam26Packages.ex_doc: 0.37.1 -> 0.37.2 2025-02-21 17:27:14 +00:00
Adam C. Stephens
7ffa9e92b5 erlang_28: init at 28.0-rc1 2025-02-16 21:20:25 -05:00
Adam C. Stephens
849604f776 ex_doc: 0.34.1 -> 0.37.1 2025-02-16 19:59:47 -05:00
Adam C. Stephens
cc9e1db81b ex_doc: add updateScript 2025-02-16 19:59:46 -05:00
R. Ryantm
5f14a6470b beam26Packages.elixir-ls: 0.26.2 -> 0.26.4 2025-02-07 07:42:00 +00:00
R. Ryantm
7f54fc670e beam26Packages.erlfmt: 1.5.0 -> 1.6.0 2025-01-30 00:30:16 +00:00
Adam C. Stephens
99876a48ad erlang-ls: fix OTP 27 compatibility 2025-01-10 14:44:51 -05:00