1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/games/doom-ports
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
..
chocolate-doom treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
crispy-doom crispy-doom: 6.0 -> 7.0 2024-08-09 12:41:59 +00:00
dhewm3 dhewm3: 1.5.3 -> 1.5.4 2024-08-04 01:16:06 +00:00
doomrunner Merge pull request #281231 from keenanweaver/doomrunner182 2024-05-01 03:52:21 +02:00
doomseeker treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
enyo-launcher treewide: sha256 -> hash attribute for gitlab.com fetchers 2024-07-13 22:28:37 +08:00
eternity-engine treewide: remove unused with statements from maintainer lists 2024-07-29 10:06:20 +08:00
eureka-editor treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
odamex treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
prboom-plus treewide: Remove indefinite article from meta.description 2024-06-09 23:07:45 +02:00
rbdoom-3-bfg
slade sladeUnstable: unstable-2023-09-30 -> 3.2.4-unstable-2023-09-30 2024-05-05 17:56:39 +02:00
zandronum treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
zdoom