Commit Graph

13 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
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
ElnuDev
7cf57324c6 stork 1.5.0 -> 1.6.0 2023-02-03 13:56:14 -08:00
Weijia Wang
593fe790e7 stork: unbreak on x86_64-darwin 2022-12-22 21:06:40 +01:00
Chua Hou
37ece42470
stork: 1.4.2 -> 1.5.0 2022-07-28 12:28:27 +08:00
Chua Hou
1da640b207
stork: 1.4.1 -> 1.4.2 2022-04-11 19:36:47 +08:00
R. Ryantm
cec06cbfb0 stork: 1.4.0 -> 1.4.1 2022-03-15 20:30:51 -04:00
Chua Hou
157b6703ea
stork: 1.3.0 -> 1.4.0
* stork: 1.3.0 -> 1.4.0 (#157416)

* stork: add Security framework and mark broken for x64 darwin build

- The Security framework is needed to build on Darwin.
- It currently fails on x86_64-darwin because the SDK is too old.
- For more details, see #157416.
2022-02-20 00:35:27 +01:00
Lein Matsumaru
8c3fbb1f20
stork: 1.2.1 -> 1.3.0 2021-12-22 15:59:01 +00:00
Chua Hou
159fe665a8
stork: 1.2.0 -> 1.2.1 2021-05-13 14:58:37 +08:00
Chua Hou
e334f12567
stork: 1.1.0 -> 1.2.0 2021-04-22 11:44:07 +08:00
Chua Hou
1ebcf4af62
stork: init at 1.1.0 2021-03-04 10:57:32 +08:00