Commit Graph

7 Commits

Author SHA1 Message Date
R. Ryantm
15fb0f315b unrar-free: 0.3.0 -> 0.3.1 2024-10-14 05:34:42 +00: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
t4ccer
24ef2a079d
unrar-free: fix meta.mainProgram 2024-09-05 14:34:49 -06:00
R. Ryantm
c12820e7a0 unrar-free: 0.2.0 -> 0.3.0 2024-03-12 01:16:27 +00:00
R. Ryantm
165f2da6b5 unrar-free: 0.1.3 -> 0.2.0 2024-03-04 12:18:20 +00:00
Thiago Kenji Okada
3ac4ef0dea unrar-free: mark broken in darwin 2024-01-08 19:38:28 +00:00
Thiago Kenji Okada
4a6867c9ba unrar-free: init at 0.1.3 2024-01-08 18:39:15 +00:00