Commit Graph

21 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
Domen Kožar
8e6501351c devenv: 1.3 -> 1.3.1 2024-10-17 19:44:37 +01:00
Domen Kožar
dbd4ab4bbd devenv: 1.2 -> 1.3 2024-10-02 16:18:57 +01:00
R. Ryantm
f957157547 devenv: 1.1 -> 1.2 2024-09-25 06:45:43 +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
Domen Kožar
efd9b31d09 devenv: fix build on darwin 2024-09-11 08:37:45 +01:00
Domen Kožar
0206930c80 devenv: 1.0.8 -> 1.1 2024-09-10 23:38:53 +01:00
Alex Martens
e574a549ab devenv: rm test binaries
Prior to this change the devenv package contained "devenv-run-tests"
and "xtask" test binaries.
2024-08-07 18:52:00 -07:00
Domen Kožar
d6ecafa365 devenv: 1.0.7 -> 1.0.8 2024-07-23 20:17:17 +01:00
Pol Dellaiera
1182067118
devenv: remove drupol from maintainers 2024-06-24 09:14:00 +02:00
Domen Kožar
a06e115bbb devenv: 1.0.6 -> 1.0.7 2024-06-13 09:10:14 +01:00
Domen Kožar
cefbadfd3b devenv: 1.0.5 -> 1.0.6 2024-06-11 14:09:27 +01:00
Domen Kožar
e2d8cc07b0 devenv: 1.0.4 -> 1.0.5 2024-04-29 12:56:49 +01:00
Domen Kožar
bfc8ad764f devenv: 1.0.3 -> 1.0.4 2024-04-13 09:25:35 +01:00
Domen Kožar
910b356595 devenv: 1.0.2 -> 1.0.3 2024-04-05 06:06:19 +01:00
Ivan Mincik
c40032835e devenv: add version test 2024-03-25 21:24:12 +01:00
Ivan Mincik
eb1beb497b devenv: function parameters cleanup
Little logical and alphabitical reordering of function parameters
2024-03-25 21:03:29 +01:00
Ivan Mincik
c0c1f663b3 devenv: use cargoHash instead of cargoLock file 2024-03-25 20:55:53 +01:00
Domen Kožar
e2060936d6 devenv: 1.0.1 -> 1.0.2 2024-03-25 15:41:25 +00:00
Pol Dellaiera
62279fba32
devenv: add meta attributes 2024-03-22 09:03:10 +01:00
Domen Kožar
23af4313d2 devenv: init at 1.0.1 2024-03-21 13:16:23 +00:00