Commit Graph

289 Commits

Author SHA1 Message Date
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
Artturin
9d9f4b50b4
Revert "splice.nix: make pkgs splicedPackages" 2024-12-06 18:58:53 +02:00
Artturin
a27e48e1b2 treewide: remove = __splicedPackages
Now that `pkgs` is `__splicedPackages` on cross we can remove these
variables I set.

Assignments like `patchutils = pkgs.patchutils_0_3_3;` in
`all-packages.nix` cannot be removed because the `pkgs`
in `patchutils = pkgs.patchutils_0_3_3;` in `all-packages.nix` is coming from
this `pkgs:` b6e486730f/pkgs/top-level/all-packages.nix (L9)
instead of the `pkgs` in `with pkgs;`
2024-11-11 00:25:02 +02:00
Erlend Hamberg
040826a94f
erlang-ls: 0.52.0 -> 1.1.0 2024-11-05 21:20:02 +01:00
Thomas Eizinger
435051f990
Also patch zsh launcher 2024-10-20 21:32:10 +11:00
Thomas Eizinger
e592a52311
Substitute reference to elixir 2024-10-20 21:12:09 +11:00
redyf
9669d45afa elixir-ls: 0.24.0 -> 0.24.1
https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.24.1
2024-10-14 18:57:22 -03:00
R. Ryantm
8f50ca43e6 elixir-ls: 0.23.0 -> 0.24.0 2024-10-09 14:29:56 +00:00
R. Ryantm
df80b55ac5 elvis-erlang: 3.2.5 -> 3.2.6 2024-09-29 15:19:44 +00:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Weijia Wang
7fcffb1bc5
elvis-erlang: 3.1.0 -> 3.2.5 (#326803) 2024-09-12 22:25:52 +02:00
R. Ryantm
d106812bbf erlfmt: 1.3.0 -> 1.5.0 2024-09-04 00:28:11 +00:00
Sav Tripodi
407c485571
elixir: 1.16 -> 1.17 update default 2024-08-31 17:17:13 +09:30
arathunku
6729e0336d
elixir-ls: 0.21.3 -> 0.23.0
- [v0.23.0 release](https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.23.0)
- [v0.22.0 release](https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.22.0)
2024-08-04 07:48:35 +02:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Mathew Polzin
b29993a04a beamPackages.mixRelease: format with nixfmt-rfc-style 2024-07-24 23:17:52 -05:00
Mathew Polzin
427bcae622 beamPackages.mixRelease: support named releases 2024-07-24 23:11:45 -05:00
R. Ryantm
efc044691c elvis-erlang: 3.1.0 -> 3.2.5 2024-07-13 12:16:58 +00:00
chiroptical
d993580d1c ex_doc: 0.32.1 -> 0.34.1 2024-06-20 19:23:13 -04:00
Adam Stephens
ceecacc612
beamPackages.hex: 2.0.6 -> 2.1.1
https://github.com/hexpm/hex/releases/tag/v2.1.0
https://github.com/hexpm/hex/releases/tag/v2.1.1
2024-06-17 13:57:10 -04:00
Wout De Puysseleir
88abc8f5a7
elixir_1_17: init at 1.17.0 2024-06-13 12:24:42 +03:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02: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
Weijia Wang
bcac1decd0
Merge pull request #315566 from r-ryantm/auto-update/elvis-erlang
elvis-erlang: 3.0.1 -> 3.1.0
2024-06-04 22:16:53 +02:00
isabel
63aceac766 treewide: remove unused occurence of fetchFromGitHub argument 2024-05-30 05:56:07 +00:00
R. Ryantm
30ebc6ab7c elvis-erlang: 3.0.1 -> 3.1.0 2024-05-29 09:04:22 +00:00
Elliott Clark
4da6c3521a elixir-ls: 0.21.1 -> 0.21.3
Summary:
0.21.3 contains a potential fix for memory leaks. This is the update.

Test Plan:
`nix-build . -A elixir-ls`
`nixpkgs-review wip`
2024-05-22 12:15:10 -05:00
arathunku
f1d350753e
elixir-ls: 0.20.0 -> 0.21.1 2024-05-17 07:04:24 +02:00
Yt
30f208309c
Merge pull request #306772 from code-supply/fetch-hex-pname-id
fetchHex: remove pname prefix
2024-05-03 11:17:37 +00:00
Andrew Bruce
4531cf76e4 fetchHex: remove pname prefix
Projects like mix2nix and my own project, deps_nix, are collecting a
growing number of workarounds for packages that depend on the working
directory of a build to have the same name as the package.

See for example: da2ebc2c63

This change makes the pname of Hex packages equal the package name, so
that such workarounds aren't necessary.
2024-04-25 13:44:35 +01:00
R. Ryantm
14d0b8e5eb erlang-ls: 0.51.0 -> 0.52.0 2024-04-25 11:52:55 +00:00
chiroptical
6e6181d1d8 erlang_27: rc2 -> rc3 2024-04-18 13:06:29 -04:00
R. Ryantm
2413c03a89 ex_doc: 0.32.0 -> 0.32.1 2024-04-16 01:32:59 +00:00
R. Ryantm
05f88d6332 ex_doc: 0.31.2 -> 0.32.0 2024-04-11 05:14:48 +00:00
Weijia Wang
8aedeffd13
Merge pull request #279591 from MarkoMin/update/erlang-ls
erlang-ls: 0.48.0 -> 0.51.0
2024-04-06 14:01:46 +02:00
Barry Moore
41e52bde8b ex_doc: init at 0.31.2 2024-04-02 13:48:05 -04:00
Marko Mindek
a44fef7dee erlang-ls: 0.48.0 -> 0.51.0 2024-04-02 17:09:32 +02:00
happysalada
04359d4f30 elixir: 1.15 -> 1.16 2024-03-27 17:31:28 -04:00
Adam Stephens
3cc34c0d9c
elixir-ls: fix building with elixir_1_16 2024-03-27 10:51:08 -04:00
Joshua Trees
cebca8587a elixir-ls: 0.19.0 -> 0.20.0 2024-03-26 11:23:12 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Philip Munksgaard
bea4776f99
elixir-ls: 0.18.1 -> 0.19.0 2024-01-22 10:19:19 +01:00
Weijia Wang
3ede90c4bd
Merge pull request #274278 from r-ryantm/auto-update/erlfmt
erlfmt: 1.2.0 -> 1.3.0
2024-01-03 16:36:32 +01:00
Philip Munksgaard
c6edf4fe49
elixir-ls: 1.17.10 -> 1.18.1
elixir-ls 1.18.0 changed the name of the `debugger.sh` (which we call
`elixir-debugger`) script to `debug_adapter.sh`, so the new name in this package
is `elixir-debug-adapter`.
2023-12-28 15:29:21 +01:00
Shane Sveller
45f7246016
elixir_1_16: init at 1.16.0
https://elixir-lang.org/blog/2023/12/22/elixir-v1-16-0-released/
https://github.com/elixir-lang/elixir/blob/v1.16.0/CHANGELOG.md#changelog-for-elixir-v116
2023-12-22 11:07:43 -06:00
R. Ryantm
217b470a60 erlfmt: 1.2.0 -> 1.3.0 2023-12-14 19:03:01 +00:00
Mathew Polzin
2d5053fca3 beamPackages.mixRelease: Make determinism toggleable 2023-12-08 07:23:35 +00:00
c4710n
c865c66216 beamPackages.buildMix: remove erlang references from output 2023-12-08 07:23:35 +00:00
c4710n
e924d0f542 beamPackages.mixRelease: remove erlang references from output 2023-12-08 07:23:35 +00:00
Matt Polzin
4600a9d607 beamPackages.mixRelease: deterministic erlang builds 2023-12-08 07:23:35 +00:00