Commit Graph

15 Commits

Author SHA1 Message Date
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
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
Nick Cao
758fd9dd53
x16-emulator: 47 -> 48 (#340147) 2024-09-11 12:54:03 -04:00
R. Ryantm
4c69db6adf x16-rom: 47 -> 48 2024-09-06 17:30:54 +00:00
R. Ryantm
36bcadbfb5 x16-emulator: 47 -> 48 2024-09-06 17:29:59 +00:00
Roland Coeurjoly
7de56ac5c4 x16: substitute --replace with --replace-fail 2024-08-25 17:07:30 +02:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
nixpkgs-merge-bot[bot]
c5978c1c8d
Merge pull request #300371 from r-ryantm/auto-update/x16-emulator
x16-emulator: 46 -> 47
2024-03-31 03:04:43 +00:00
R. Ryantm
cc56d54530 x16-rom: 46 -> 47 2024-03-31 01:34:38 +00:00
R. Ryantm
12aee7f3db x16-emulator: 46 -> 47 2024-03-31 01:27:51 +00:00
Anderson Torres
82529fe5ec x16.emulator: 45 -> 46 2023-12-10 22:24:00 -03:00
Anderson Torres
7d416c7e15 x16.rom: 45 -> 46 2023-12-10 22:24:00 -03:00
Anderson Torres
61bd5e0761 x16.emulator: 44 -> 45 2023-12-10 22:24:00 -03:00
Anderson Torres
fd6fc06eb9 x16.rom: 44 -> 45
New dependency `lzsa`.
2023-12-10 22:24:00 -03:00
Anderson Torres
5f0c17edea x16: move from commanderx16
Now they live under x16 attribute.
Since the old names are easier to use and remember, they should be kept as
non-removable aliases.
2023-12-10 22:24:00 -03:00