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
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Manuel Frischknecht
c5bfa2626e kord: fix build due to changed compiler features
The rust feature `no_coverage` has been replaced by one called
`coverage_attribute` (and respective `#[no_coverage]` declarations
must now be annotated as `#[coverage(off)]`. Because of this, the
build of `kord` fails on current versions of the Rust compiler.

Upstream has already resolved these issues [1], but there haven't
been any new releases since these fixes have been committed to
trunk. This change pulls the respective patch in using `fetchpatch`
for now -- this patch should be removable with the next release.

[1]: fa9bb979b1
2024-02-27 21:57:11 +00:00
Mario Rodas
ed381394f2 kord: fix darwin build 2023-06-29 04:20:00 +00:00
kidsan
781d1ac810 kord: 0.5.16 -> 0.6.1 2023-06-20 09:21:42 +02:00
kidsan
920a7f5500 kord: 0.4.2 -> 0.5.16 2023-05-03 18:33:39 +02:00
kidsan
bd4ab5e17c kord: init at 0.4.2 2023-01-16 13:32:44 +01:00