Commit Graph

299 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
chiroptical
60d00382ce erlang_27: 27.0.1 -> 27.1.2 2024-10-18 12:26:37 -04:00
chiroptical
b66c26bd3e erlang_26: 26.2.5.1 -> 26.2.5.4 2024-10-17 20:08:54 -04:00
chiroptical
8b2c339cbc erlang: 25.3.2.13 -> 25.3.2.15 2024-10-17 19:32:42 -04: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
Yt
2bd06aae37
beam-packages: add nodocs target for building ex_doc on 27+ (#340105) 2024-09-07 01:51:54 +00:00
Adam Stephens
836658e721
beam-packages: add nodocs target for building ex_doc on 27+ 2024-09-06 09:57:17 -04:00
Barry Moore
d297a17708 erlang_27: 27.0 -> 27.0.1 2024-07-23 13:14:56 -04:00
Barry Moore
c770420c90 erlang_27: 27.0.1 -> 27.0 2024-07-16 16:39:39 -04:00
Yt
80e9e99a8c
Merge pull request #326403 from chiroptical/chiroptical/erlang-27-0-1
erlang: 25.3.2.12 -> 25.3.2.13; erlang_27: 27.0 -> 27.0.1
2024-07-12 01:13:51 +00:00
chiroptical
44209e4e63 erlang: 25.3.2.12 -> 25.3.2.13 2024-07-11 19:37:01 -04:00
chiroptical
49a8e45bb0 erlang_27: 27.0 -> 27.0.1 2024-07-11 19:35:33 -04:00
Barry Moore
b23b34f413 erlang_26: 26.2.5 -> 26.2.5.1 2024-06-25 13:30:07 -04:00
Liam Diprose
6ae361cbd2 erlang: patch sh path
RabbitMQ 3.13 crashes because it requires Erlang/OTP 26 and hits [this call to `sh`](https://github.com/erlang/otp/blob/maint-26/lib/os_mon/src/disksup.erl#L243). This patches the call to `sh` with its full path, `${bash}/bin/sh` when the version is older than 25
2024-06-07 01:46:27 +12:00
chiroptical
060707a021 erlang_27-rc3: remove 2024-05-20 20:40:16 -04:00
chiroptical
c257b3e4a7 erlang_27: init 27.0 2024-05-20 19:49:12 -04:00
R. Ryantm
3b86519273 erlang_javac: 25.3.2.11 -> 25.3.2.12 2024-05-06 18:47:47 +00:00
Yt
33d738eb12
Merge pull request #308689 from r-ryantm/auto-update/erlang_26
erlang_26: 26.2.4 -> 26.2.5
2024-05-03 21:34:34 +00:00
R. Ryantm
8665b999b6 erlang_26: 26.2.4 -> 26.2.5 2024-05-03 02:24:19 +00:00
Jan Tojnar
eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00
chiroptical
6e6181d1d8 erlang_27: rc2 -> rc3 2024-04-18 13:06:29 -04:00
Yt
038cdc993a
Merge pull request #303750 from chiroptical/add-erlang_27-rc2
erlang_27: init at 27-rc2
2024-04-14 12:01:36 +00:00
Barry Moore
92b656e044 erlang_27: init at 27-rc2 2024-04-13 21:27:59 -04:00
R. Ryantm
8b3a6eab4c erlang: 25.3.2.10 -> 25.3.2.11 2024-04-13 11:24:41 +00:00
R. Ryantm
90cdf140e0 erlang_26: 26.2.3 -> 26.2.4 2024-04-12 13:00:18 +00:00
R. Ryantm
b07cfd92e4 erlang_24: 24.3.4.16 -> 24.3.4.17 2024-04-10 02:37:41 +00:00
Michael Fellinger
75d6be6c99
erlang: add wrapGAppsHook 2024-04-08 15:23:40 +02:00
R. Ryantm
c0dc4cbc1b erlang: 25.3.2.9 -> 25.3.2.10 2024-03-13 17:52:36 +00:00
R. Ryantm
85416233c6 erlang_26: 26.2.2 -> 26.2.3 2024-03-07 16:02:27 +00:00
R. Ryantm
cb1b73c031 erlang_24: 24.3.4.15 -> 24.3.4.16 2024-02-15 03:27:49 +00:00
Yt
3df8b0b1dc
Merge pull request #287338 from r-ryantm/auto-update/erlang_odbc_javac
erlang_odbc_javac: 25.3.2.8 -> 25.3.2.9
2024-02-10 10:27:08 +00:00
R. Ryantm
41b00890ef erlang_26: 26.2.1 -> 26.2.2 2024-02-09 06:11:17 +00:00
R. Ryantm
1b74d71d02 erlang_odbc_javac: 25.3.2.8 -> 25.3.2.9 2024-02-08 23:47:35 +00:00
Yt
d33399375f
Merge pull request #277974 from r-ryantm/auto-update/erlang_25
erlang_25: 25.3.2.7 -> 25.3.2.8
2024-01-01 18:19:06 +01:00
Yt
662e6384fa
Merge pull request #277972 from r-ryantm/auto-update/erlang_26
erlang_26: 26.2 -> 26.2.1
2024-01-01 18:18:51 +01:00
R. Ryantm
592a779f3c erlang_26: 26.2 -> 26.2.1 2023-12-31 21:20:13 +00:00
R. Ryantm
2a2c4edd4f erlang_24: 24.3.4.14 -> 24.3.4.15 2023-12-31 21:01:46 +00:00
R. Ryantm
fe40478617 erlang_25: 25.3.2.7 -> 25.3.2.8 2023-12-31 20:56:54 +00:00
R. Ryantm
adf2347f8b erlang_26: 26.1.2 -> 26.2 2023-12-15 00:50:32 +00:00
c4710n
b0fed034e1 erlang: 26.1.1 -> 26.1.2 2023-10-14 14:00:20 +00:00
c4710n
23cd663385 erlang: 25.3.2.6 -> 25.3.2.7 2023-10-14 14:00:20 +00:00
c4710n
af85dce475 erlang: 24.3.4.13 -> 24.3.4.14 2023-10-14 14:00:20 +00:00
R. Ryantm
c6c03530da erlang_26: 26.1 -> 26.1.1 2023-10-04 11:04:56 +00:00
Adrian Pistol
d75b2f56d0 erlang_26: 26.0.2 -> 26.1 2023-09-25 10:47:08 +02:00
ajs124
f85cec7548 erlang23: remove 2023-09-13 11:33:11 +00:00
R. Ryantm
4bedf3d74c erlang: 25.3.2.5 -> 25.3.2.6 2023-09-12 17:18:43 +00:00
R. Ryantm
e1d395d39b erlang: 25.3.2.4 -> 25.3.2.5 2023-08-02 17:31:22 +08:00
R. Ryantm
083a9cb41f erlang_25: 25.3.2.3 -> 25.3.2.4 2023-07-18 14:59:19 +09:00
R. Ryantm
eb9322a008 erlang_odbc: 25.3.2.2 -> 25.3.2.3 2023-06-30 21:21:49 +08:00
Weijia Wang
3a64a44724
Merge pull request #240711 from meppu/erlang_26
erlang_26: 26.0.1 -> 26.0.2
2023-06-30 15:45:10 +03:00