Commit Graph

9 Commits

Author SHA1 Message Date
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
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +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
2968e9acf1 inherd-quake: 0.5.0 -> 0.5.1 2022-07-29 11:53:51 +00:00
R. Ryantm
78cbcb3346 inherd-quake: 0.4.0 -> 0.5.0 2022-01-24 14:07:12 +00:00
Elliot
80fb0564e9
inherd-quake: 0.3.0 -> 0.4.0 2022-01-10 23:29:44 +08:00
Bobby Rong
cdf40cdec5
inherd-quake: update cargoSha256 2021-12-29 08:52:11 +08:00
Bobby Rong
487f0c6dbe
inherd-quake: fix pname, set meta.mainProgram 2021-12-29 08:38:30 +08:00
Elliot Xu
4a578ce659 quake: init at 0.3.0
Update pkgs/applications/misc/inherd-quake/default.nix

Co-authored-by: Bobby Rong <rjl931189261@126.com>

Update pkgs/applications/misc/inherd-quake/default.nix

Co-authored-by: Bobby Rong <rjl931189261@126.com>

Update pkgs/applications/misc/inherd-quake/default.nix

Co-authored-by: Bobby Rong <rjl931189261@126.com>

Update pkgs/applications/misc/inherd-quake/default.nix

Co-authored-by: Bobby Rong <rjl931189261@126.com>
2021-12-28 20:34:42 +08:00