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
38d3c1a8c6 tpnote: 1.24.9 -> 1.24.10 2024-12-07 23:12:01 +00:00
R. Ryantm
df3927e29e tpnote: 1.24.8 -> 1.24.9 2024-10-30 07:07:28 +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
R. Ryantm
e1cbc50048 tpnote: 1.24.7 -> 1.24.8 2024-08-24 16:31:10 +00:00
R. Ryantm
44480e472d tpnote: 1.24.6 -> 1.24.7 2024-07-22 02:24:18 +00:00
R. Ryantm
19da04500e tpnote: 1.24.4 -> 1.24.6 2024-07-10 03:18:38 +00:00
Ali Rizvi
e5e5da76dc
tpnote: 1.24.2 -> 1.24.4 2024-06-21 22:13:25 -04:00
Jens Getreu
1109db26e1 tpnote: add manpage 2024-06-09 10:43:32 +03:00
Sigmanificient
cc8120d3ff pkgs/by-name: remove unuseed fetchpatch arguments 2024-05-24 02:49:58 +02:00
kashw2
1f1714519a tpnote: 1.24.0 -> 1.24.2 2024-04-13 00:12:53 +10:00
R. Ryantm
0a2a7249a4 tpnote: 1.23.10 -> 1.24.0 2024-04-08 15:17:19 +00:00
Jens Getreu
7adc4c8a53 tpnote: 1.23.9 -> 1.23.10 2024-03-21 20:26:16 +02:00
Jens Getreu
9b5f584440 tpnote: init at 1.23.9 2024-03-13 20:15:33 +02:00