Commit Graph

15 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
R. Ryantm
4b41775396 upsun: 5.0.22 -> 5.0.23 2024-12-09 17:28:48 +00:00
R. RyanTM
17499a9cc9
upsun: 5.0.21 -> 5.0.22 (#346825) 2024-10-06 12:09:39 +02: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
Laurent Arnoud
cba7b6b6ca
upsun: 5.0.16 -> 5.0.21 2024-09-18 17:07:52 +02:00
Laurent Arnoud
363ab2fe36
upsun: add updateScript 2024-08-19 09:58:34 +02: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
Pol Dellaiera
51f5b20cdb
upsun: sort meta attributes 2024-05-15 10:59:37 +02:00
Pol Dellaiera
6ef43c9256
upsun: add test 2024-05-15 10:58:14 +02:00
Pol Dellaiera
ffc0157df6
upsun: 5.0.12 -> 5.0.13 2024-05-15 10:58:14 +02:00
Pol Dellaiera
1a52ab969c
upsun: reformat using nixfmt-rfc-style 2024-05-15 10:58:14 +02:00
Pol Dellaiera
4bd2ce3420
upsun: use finalAttrs pattern 2024-05-15 10:48:26 +02:00
Pol Dellaiera
145661005b
upsun: add missing phases 2024-05-15 10:46:54 +02:00
Laurent Arnoud
b4c2ea968e upsun: add darwin build 2024-05-15 10:02:01 +10:00
Laurent Arnoud
6805bd7bb0
upsun: init at 5.0.12 2024-04-05 09:33:26 +02:00