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
Anderson Torres
d45e8e6eca castxml: abandon maintenance
Since the incidents from @ghost at https://github.com/NixOS/nixpkgs/pull/311950,
I do not feel well about the weariful, boring and unworthy work of keeping this
package for free.
2024-08-11 13:04:05 -03:00
Anderson Torres
d3b5a5c64c castxml: nixfmt-rfc-style 2024-08-11 13:04:05 -03:00
R. Ryantm
f45b8504ae castxml: 0.6.6 -> 0.6.8 2024-07-08 23:10:44 +02:00
Ben Darwin
fff1d11f45 castxml: fix CLANG_RESOURCE_DIR; enable tests 2024-06-08 00:22:52 -04:00
Ben Darwin
068d1888e7 castxml: use testers.testVersion in passthru.tests
(in order to prevent CLI regressions such as https://github.com/NixOS/nixpkgs/pull/318055)
2024-06-07 22:23:15 -04:00
Ben Darwin
3a9a98fd48 castxml: unbreak binary by adding llvm to buildInputs
Fixes #318055.
2024-06-07 22:23:04 -04:00
Weijia Wang
94490fd531 castxml: fix build on darwin 2024-05-23 06:18:50 +02:00
Anderson Torres
ea98d5db44 castxml: 0.6.5 -> 0.6.6 2024-05-06 22:47:56 -03:00
Anderson Torres
a7b4b2bdda castxml: refactor
- strictDeps
- no nested with
2024-05-06 22:43:11 -03:00
Anderson Torres
5502f06579 castxml: migrate to by-name 2024-05-06 22:31:05 -03:00