Commit Graph

10 Commits

Author SHA1 Message Date
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Audrey Dutcher
d3b4764f65 flite: fix build for FreeBSD 2025-03-06 18:20:58 +05:30
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
seth
53212869d0 flite: add updateScript 2024-07-15 13:35:55 -04:00
seth
995a987f3c flite: split outputs 2024-06-12 03:31:14 -04:00
seth
1e927c9b68 flite: add meta.mainProgram 2024-06-12 03:31:14 -04:00
seth
fea7be8dcb flite: add version test 2024-06-12 03:31:14 -04:00
seth
071811b0fe flite: modernize 2024-06-12 03:31:13 -04:00
seth
6428ef50fa flite: format with nixfmt 2024-06-12 03:31:13 -04:00
seth
cfcd38ceeb flite: migrate to by-name 2024-06-12 03:31:13 -04:00