Commit Graph

24 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
1989c9f4b5 ptyxis: 47.4 -> 47.5 2024-12-05 11:48:53 +00:00
R. Ryantm
27759f6798 pt2-clone: 1.70 -> 1.71 2024-11-27 05:01:34 +00:00
liberodark
e43015afa2 pt: move by-name 2024-11-21 09:55:28 +01:00
aleksana
da5b4f85a9 ptyxis: 47.2 -> 47.4 2024-11-10 11:21:47 +08:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Honnip
f687a6f7d8
ptyxis: 46.6 -> 47.2 2024-10-16 17:18:08 +09: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
aleksana
f6888ebd9a ptyxis: 46.5 -> 46.6 2024-08-20 15:45:11 +08:00
aleksana
ae3e0af872 ptyxis: switch to finalAttrs pattern 2024-08-20 12:32:48 +08:00
linsui
78deba0539 ptyxis: 46.4 -> 46.5 2024-07-13 15:13:44 +08:00
R. Ryantm
57c9979e71 ptyxis: 46.3 -> 46.4 2024-06-29 14:42:06 +00:00
aleksana
913e6f788b ptyxis: 46.2 -> 46.3 2024-06-20 00:07:36 +08: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
R. Ryantm
8bfc54dc2c ptyxis: 46.1 -> 46.2 2024-05-13 14:49:07 +00:00
aleksana
887fed1d67 ptyxis: init at 46.1 2024-05-05 00:02:59 +08: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
Sandro
e7b02e26a5
Merge pull request #289111 from Sascha8a/master
ptouch-driver: init at 1.7.0
2024-03-07 22:40:56 +01:00
Alexander Lampalzer
c763926463
ptouch-driver: init at 1.7.0 2024-02-25 18:38:58 +01:00
OPNA2608
132162cb7a ptcollab: 0.6.4.7 -> 0.6.4.8 2024-02-24 19:28:43 +01:00
D3vil0p3r
2dd5557a26 ptunnel: init at 0.72 2024-02-18 21:39:15 +01:00
Robert James Hernandez
aba1457d5b pterm: mark as broken on Darwin 2023-11-13 04:43:58 +00:00
Robert James Hernandez
0c4fe8a70e pterm: patch null check in dtnetsubs 2023-10-30 22:22:17 +00:00
Robert James Hernandez
20778df8e8 pterm: init at 6.0.4 2023-10-30 22:17:19 +00:00