Commit Graph

10 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
fd2b30d945 awsbck: 0.3.8 -> 0.3.9 2024-06-10 13:25:37 +00:00
R. Ryantm
2753e4dd6d awsbck: 0.3.7 -> 0.3.8 2024-03-22 16:09:41 +00:00
R. Ryantm
fe522c148c awsbck: 0.3.6 -> 0.3.7 2024-02-18 23:46:39 +00:00
beeb
818d4e2cb3
awsbck: 0.3.5 -> 0.3.6 2023-11-29 10:05:17 +01:00
h7x4
b8054ecd8a treewide: add mainProgram 2023-11-23 21:04:16 +01:00
Aaron Jheng
182d381830
awsbck: 0.3.4 -> 0.3.5 2023-10-01 08:52:59 +00:00
beeb
e0c075a8bf
awsbck: 0.3.3 -> 0.3.4
https://github.com/beeb/awsbck/releases/tag/v0.3.4
2023-08-27 20:46:01 +02:00
beeb
a542c2ef4d
awsbck: 0.3.2 -> 0.3.3
https://github.com/beeb/awsbck/releases/tag/v0.3.3
2023-07-13 16:30:15 +02:00
beeb
8d424b681c awsbck: init at 0.3.2 2023-06-28 19:18:06 +02:00