Commit Graph

14 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
Cosmic Horror
f89e86506d inlyne: 0.4.2 -> 0.4.3 2024-08-31 11:42:52 +02:00
Julius Michaelis
6a9beaf893 treewide: skip generating shell completions using $out/bin/… when cross compiling
This focuses on Rust packages, since the most commonly used argument
parser library (clap/structopt) makes the following pattern natural and
thus common:

  postInstall = ''
    installShellCompletion --cmd foo \
      --bash <($out/bin/foo completion bash) \
      …

This commit just guards those with

lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform)

splitting the string where unrelated actions are performed.
2024-08-04 10:50:48 +09:00
Julius Michaelis
7454971deb inlyne: fix installing shell completions
upstream recommends using cargo xtask gen, but checks in the results
2024-08-04 10:42:36 +09: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
R. Ryantm
e3303beb0c inlyne: 0.4.1 -> 0.4.2 2024-04-07 01:42:24 +00:00
R. Ryantm
64cbf865f0 inlyne: 0.4.0 -> 0.4.1 2024-03-17 11:39:49 +00:00
TornaxO7
3c99de3390
inlyne: 0.3.2 -> 0.4.0 2024-02-19 00:48:52 +01:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
figsoda
083d4ff4c3 inlyne: 0.3.1 -> 0.3.2
Diff: https://github.com/trimental/inlyne/compare/v0.3.1...v0.3.2

Changelog: https://github.com/trimental/inlyne/releases/tag/v0.3.2
2023-11-28 14:40:31 -05:00
figsoda
e71b93b1c6 inlyne: 0.2.1 -> 0.3.1
Diff: https://github.com/trimental/inlyne/compare/v0.2.1...v0.3.1

Changelog: https://github.com/trimental/inlyne/releases/tag/v0.3.1
2023-05-09 18:29:29 -04:00
R. Ryantm
c075296bff inlyne: 0.2.0 -> 0.2.1 2022-10-21 17:41:15 +00:00
Artturin
61c3058bcb all-packages.nix: remove inherit (*xorg) *'s
using inherits in callPackage args is discouraged and doesn't splice
correctly
2022-10-14 20:48:09 +03:00
figsoda
c0b69f5719 inlyne: init at 0.2.0 2022-09-28 19:18:50 -04:00