Commit Graph

14 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
62c8b9930d dumbpipe: 0.18.0 -> 0.20.0 2024-12-01 19:54:07 +00:00
Bruno Bigras
4605890976 dumbpipe: 0.17.0 -> 0.18.0 2024-10-01 23:57:39 -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
R. Ryantm
4951e27030 dumbpipe: 0.16.0 -> 0.17.0 2024-09-21 22:36:48 +00:00
R. Ryantm
063aa0109d dumbpipe: 0.13.0 -> 0.16.0 2024-09-09 13:23:37 +00:00
R. Ryantm
03946f9b10 dumbpipe: 0.12.0 -> 0.13.0 2024-07-23 01:03:08 +00:00
R. Ryantm
e1c37886e7 dumbpipe: 0.11.0 -> 0.12.0 2024-07-10 03:29:56 +00:00
R. Ryantm
644a77dbd7 dumbpipe: 0.10.0 -> 0.11.0 2024-06-28 00:41:15 +00:00
R. Ryantm
22f6906bdd dumbpipe: 0.9.0 -> 0.10.0 2024-06-08 00:39:11 +00:00
R. Ryantm
873412e444 dumbpipe: 0.8.0 -> 0.9.0 2024-05-25 01:32:36 +00:00
R. Ryantm
75efe411e5 dumbpipe: 0.7.0 -> 0.8.0 2024-05-14 01:35:34 +00:00
R. Ryantm
30f499e236 dumbpipe: 0.6.0 -> 0.7.0 2024-04-30 01:05:41 +00:00
cameronfyfe
c0ee181ad5 dumbpipe: init at 0.6.0 2024-04-27 23:16:03 +10:00