Commit Graph

6 Commits

Author SHA1 Message Date
Ryan Yin
43ccd1d4e5 maintainers: add ryan4yin 2024-10-24 14:24:31 +08:00
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
Ryan Yin
fb27fe2102 python3Packages.bcc: init at 0.31.0 2024-09-04 17:30:57 +08:00
R. Ryantm
4cd87f9ba9 bcc: 0.30.0 -> 0.31.0 2024-08-08 06:41:47 +00:00
Dominique Martinet
c87348b2c1 bcc/bpftrace: add missing platforms=linux
bcc and bpftrace depend on bpf which is linux-specific
2024-05-14 14:38:09 +09:00
Dominique Martinet
e9531dec25 bcc: migrate to by-name
The package is left in all-packages to allow setting llvmPackages more
easily
2024-05-12 19:05:44 +09:00