Commit Graph

42 Commits

Author SHA1 Message Date
Adam C. Stephens
b044ad6e5e elixir: simplifiy generic builder and overriding 2025-10-20 21:08:37 -04:00
Adam C. Stephens
65d2c0d8f5 elixir_1_19: 1.19.0-rc.0 -> 1.19.0-rc.1
https://github.com/elixir-lang/elixir/releases/tag/v1.19.0-rc.1
2025-10-05 08:39:40 -04:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Wolfgang Walther
093e7390f1 beamPackages.elixir: avoid throwing for incompatibility in CI
These asserts should only trigger when a user tries to use that
combination. In CI, they should just not create an attrpath to evaluate.
2025-07-19 13:19:45 +02:00
Adam C. Stephens
480d93609d elixir: add stdlib source and fix deterministic builds 2025-07-14 11:24:23 -04:00
Adam C. Stephens
c4f3b97eb7 elixir: add passthru.updateScript based on major/minor
This should avoid 1.18 from upgrading to 1.19-rc*
2025-06-10 09:02:58 -04: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
w
55442f689a elixir: use env shebang only on Darwin 2025-01-10 01:24:48 +00:00
Yt
65ca69208a elixir: modify Elixir license to Apache 2.0 (#368372) 2024-12-26 15:08:02 -05:00
jurraca
c510ae1821 elixir: modify Elixir license to Apache 2.0
The current license is Eclipse Public license (epl10) which is
incorrect. I suspect this was intended to be Erlang Public License,
which was the license for OTP versions up to OTP 18. Since the minimum
OTP version for Elixir currently is 23, there should be no need to address
per-version license in this case.
2024-12-26 17:14:49 +00:00
Adam C. Stephens
1e73e22f30 elixir: add maximumOTPVersion assertion 2024-12-24 14:36:16 -05:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
c4710n
7b050ed276 elixir: rename erlangPackage option to erlang 2023-12-06 19:13:38 +00:00
Łukasz Jan Niemier
2aa67111a8 elixir: Allow overriding Erlang package 2023-12-05 11:42:19 +00:00
c4710n
1b45f71c2e elixir: enable Erlang compiler option - deterministic 2023-12-02 22:39:36 +00:00
Daniel Kempkens
c118bb4f9a elixir: make mix interpreter path absolute
Remove the implicit dependency on `elixir` being somewhere in `PATH`.

Before:

```
$ nix build '.#elixir_1_15'
$ ./result/bin/mix --version
env: ‘elixir’: No such file or directory
```

After:

```
$ nix build '.#elixir_1_15'
$ ./result/bin/mix --version
Erlang/OTP 25 [erts-13.2.2.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]

Mix 1.15.2 (compiled with Erlang/OTP 25)
```

This was caused by the shebang interpreter directive being set to
`${coreutils}/bin/env elixir`, whereas now the `elixir` part is replaced
with the full path to the interpreter.

We can't get rid of the `${coreutils}/bin/env` part, because without it
all scripts are interpreted as shell scripts.
2023-07-20 20:52:55 +09:00
Shane Sveller
bf2e7265e3 elixir: Locate generate_app.escript via defaulted argument 2023-06-19 10:53:45 -04:00
Felix Buehler
783d2679e5 treewide: rename name to pname&version 2022-03-08 13:24:25 +01:00
happysalada
7e26b2a455 elixir: remove unused setup hook 2021-05-24 10:14:44 +09:00
happysalada
79118eb657 elixir: format: group inherit 2021-05-24 10:14:44 +09:00
happysalada
58a66f0160 elixir: nixpkgs-fmt 2021-05-24 10:14:44 +09:00
Ben Siraphob
e03c068af5 treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
Day Fisher
50f5661c5f elixir: remove hardcoded certificate path for curl
The hardcoded CURL_CA_BUNDLE path does not exist on MacOS, which causes
all curl calls (e.g. in build scripts) to fail.  This commit removes
that environment variable, causing curl fall back to NIX_SSL_CERT_FILE
instead.
2021-02-09 11:53:55 -07:00
Eric Bailey
35056b3b61 maintainers/teams: add beam team 2021-02-07 13:01:11 -06:00
Ben Siraphob
001c0cbe54 pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
Oleksii Filonenko
512c3c0a05 maintainers: rename filalex77 -> Br1ght0ne 2020-11-17 13:09:31 +02:00
cw
3c379af10b elixir_1_6: remove
Additionally removed the now obsolete rebar build dependency for elixir.
2020-09-24 15:14:52 +02:00
Jörg Thalheim
887295fd2d treewide: remove the-kenny from maintainers
@the-kenny did a good job in the past and is set as maintainer in many package,
however since 2017-2018 he stopped contributing. To create less confusion
in pull requests when people try to request his feedback, I removed him as
maintainer from all packages.
2020-05-09 10:28:57 +01:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Oleksii Filonenko
60631eab82 elixir: add filalex77 to maintainers 2020-02-10 16:07:07 +02:00
Robin Gloster
ac8eaa8507 treewide: fix *Flags 2019-12-30 04:50:37 +01:00
cw
24a2ee8fac elixir: remove obosolete glibcLocales
As C.UTF-8 is available now.
2019-06-21 11:03:34 +02:00
Graham Christensen
18993b3dd1 elixir: remember where a package is defined
A bunch of human-facing things around Nixpkgs depend on knowing where
a package was defined. This PR makes it so ofborg can ping elixir
maintainers.
2019-01-29 12:32:55 -05:00
Daiderd Jordan
ddc4235279 elixir: fix 1.7 build on linux 2018-08-04 22:46:09 +02:00
Daiderd Jordan
911b7b20c0 elixir: init 1.7.0 2018-07-25 23:48:50 +02:00
Gleb Peregud
558db539f5 elixir: Fix locale problem on NixOS
It looks like Erlang/OTP requires access to LOCALE_ARCHIVE for locales to correctly work. Elixir depends on this here:
7a556b8f26/lib/elixir/src/elixir.erl (L76)

Fixes #30047
2017-10-04 23:23:57 +02:00
Andrey Pavlov
da430a1597 elixir: 1.5.0 -> 1.5.1
Also homepage URL is updated
2017-08-09 11:51:49 +03:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Justin Wood
6db77ccef4 Fix quoting in Elixir generic builder 2017-07-08 20:32:16 -04:00
Justin Wood
46faaa69b8 Make assertion for OTP version in the generic elixir builder
Changed Elixir 1.5 to include the fact it is an rc release
2017-06-26 23:13:58 -04:00
Justin Wood
019afb0c80 Generalize building of Elixir interpreter 2017-06-26 23:13:58 -04:00