Commit Graph

11 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
R. Ryantm
5b9b1883ca gotify-desktop: 1.3.6 -> 1.3.7 2024-07-10 01:17:58 +00:00
R. Ryantm
0a6a16c407 gotify-desktop: 1.3.4 -> 1.3.6 2024-03-04 01:10:00 +00:00
R. Ryantm
426c059ec3 gotify-desktop: 1.3.3 -> 1.3.4 2024-02-05 10:57:34 +00:00
R. Ryantm
3aa7cbf2bf gotify-desktop: 1.3.2 -> 1.3.3 2024-01-30 07:48:26 +00:00
h7x4
41974d5ed9
treewide: add mainProgram 2023-11-27 02:17:53 +01:00
R. Ryantm
2348f5726e gotify-desktop: 1.3.1 -> 1.3.2 2023-10-31 14:52:28 +00:00
Bryan A. S
51d859cdab gotify-desktop: mark as broken for darwin 2022-05-10 00:05:25 +02:00
R. Ryantm
b84f13964d gotify-desktop: 1.2.0 -> 1.3.1 2022-03-26 23:06:50 +00:00
genofire
39d1d1893b gotify-desktop: add maintainer genofire (me) 2021-11-20 22:15:45 +01:00
Bryan A. S
38f51c213c gotify-desktop: init at 1.2.0 2021-11-16 23:48:47 -03:00