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
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
R. Ryantm
78ad8c7832 kbt: 2.0.6 -> 2.1.0 2024-01-07 02:52:42 +00:00
figsoda
bf61ad0215 kbt: 1.2.3 -> 2.0.6
Diff: https://github.com/bloznelis/kbt/compare/1.2.3...2.0.6
2023-11-06 14:55:19 -05:00
figsoda
fb53fb7b38 kbt: 1.2.2 -> 1.2.3
Diff: https://github.com/bloznelis/kbt/compare/1.2.2...1.2.3
2023-08-11 09:37:07 -04:00
figsoda
ca7dc7deaa kbt: 1.2.1 -> 1.2.2
Diff: https://github.com/bloznelis/kbt/compare/1.2.1...1.2.2
2023-08-08 11:44:28 -04:00
figsoda
74cf9a8f98 kbt: 1.1.0 -> 1.2.1
Diff: https://github.com/bloznelis/kbt/compare/1.1.0...1.2.1
2023-07-28 09:39:09 -04:00
figsoda
f4d870c84a kbt: 1.0.0 -> 1.1.0
Diff: https://github.com/bloznelis/kbt/compare/1.0.0...1.1.0
2023-07-27 13:32:02 -04:00
figsoda
0abe9b54d8 kbt: init at 1.0.0
https://github.com/bloznelis/kbt
2023-07-23 14:42:30 -04:00