Commit Graph

7 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
Gabriel Fontes
930cbcd072
dim: fix compilation error with rust 1.80
As per https://github.com/NixOS/nixpkgs/issues/332957,
https://github.com/rust-lang/rust/issues/127343. Bumps the time dependency in Cargo.lock, to fix a compilation issue
2024-08-08 10:31:52 -03:00
Emily
d25171fc8e dim: bump nightfall for FFmpeg >= 6 support
I have no idea if this works.
2024-07-14 08:34:24 +01:00
Raghav Sood
66e29fc72b
dim: add missing darwin dependencies 2024-05-13 23:57:02 +08:00
Raghav Sood
6a2874d266
dim: nixfmt-rfc-style 2024-05-13 23:55:46 +08:00
Leah Amelia Chen
a66b1dc4a4 dim: fix build failure
Who would've thought it's caused by unused imports of all things...?
2024-05-08 13:56:41 +02:00
Gabriel Fontes
10bb09d36c
dim: init at unstable-2023-12-29 2024-02-17 14:53:40 -03:00