Commit Graph

9 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
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
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Artturin
79aa1b2182 maintainers: retire inactive MP2E
their last commit to nixpkgs was in `2019-02-21`
2024-04-29 02:30:00 +03:00
lassulus
ee1c8e6794
Merge pull request #271501 from souxd/init-zandronum-alpha
zandronum-alpha: init at 3.2-230709-1914
2024-04-13 15:45:21 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
souxd
125fc57962 zandronum-alpha: init at 3.2-230709-1914
new file:   pkgs/games/doom-ports/zandronum/alpha/add_gitinfo.patch
	new file:   pkgs/games/doom-ports/zandronum/alpha/default.nix
	new file:   pkgs/games/doom-ports/zandronum/alpha/dont_update_gitinfo.patch
	new file:   pkgs/games/doom-ports/zandronum/alpha/zan_configure_impurity.patch
	modified:   pkgs/top-level/all-packages.nix
2023-12-01 14:59:56 -03:00
souxd
5647d108b3 zandronum: 3.0.1 -> 3.1.0
Changes to be committed:
	modified:   pkgs/games/doom-ports/zandronum/add_gitinfo.patch
	modified:   pkgs/games/doom-ports/zandronum/default.nix
	modified:   pkgs/games/doom-ports/zandronum/dont_update_gitinfo.patch
	modified:   pkgs/games/doom-ports/zandronum/sqlite.nix
	modified:   pkgs/games/doom-ports/zandronum/zan_configure_impurity.patch
2023-12-01 14:45:09 -03:00
Anderson Torres
e709a4888d zandronum: move to games/doom-ports 2023-05-02 22:35:27 -03:00