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
Peder Bergebakken Sundt
8c8c27bb19 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
Rohit Singh
103bd1c792 nixci: add rsrohitsingh682 as a maintainer 2024-07-25 13:05:04 +05:30
Rohit Singh
991fbf2f10 nixci: 0.5.0 -> 1.0.0 2024-07-25 01:05:30 +05:30
shivaraj-bh
d7e3fe582a nixci: 0.4.0 -> 0.5.0 2024-06-17 11:37:43 +05:30
shivaraj-bh
5efa13b4a4 nixci: 0.2.0 -> 0.4.0; fix Darwin build
https://github.com/srid/nixci/releases/tag/0.4.0

Add SystemConfiguration and IOKit from apple_sdk to fix the darwin build failure
2024-04-20 17:59:37 +05:30
Sridhar Ratnakumar
bc477a777b nixci: 0.1.3 -> 0.2.0 2023-09-27 10:14:38 -04:00
Sridhar Ratnakumar
5950a71f62 devour-flake: init at 2 2023-07-25 11:22:28 -04:00
Sridhar Ratnakumar
3d1b68c445 nixci: init at 0.1.3 2023-07-25 11:22:28 -04:00