Commit Graph

15 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
R. Ryantm
cbda7ae070 fh: 0.1.16 -> 0.1.17 2024-09-18 03:09:05 +00:00
ghpzin
7f907528a8 fh: 0.1.10 -> 0.1.16, fix build 2024-08-19 08:11:23 +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
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
R. Ryantm
a617e3f8fd fh: 0.1.9 -> 0.1.10 2024-03-22 17:15:32 +00:00
R. Ryantm
77172b88f6 fh: 0.1.8 -> 0.1.9 2023-12-14 22:30:03 +00:00
figsoda
693025dbcf fh: 0.1.7 -> 0.1.8
Diff: https://github.com/DeterminateSystems/fh/compare/v0.1.7...v0.1.8

Changelog: https://github.com/DeterminateSystems/fh/releases/tag/v0.1.8
2023-11-18 19:52:23 -05:00
figsoda
563cdddd67 fh: 0.1.6 -> 0.1.7
Diff: https://github.com/DeterminateSystems/fh/compare/v0.1.6...v0.1.7

Changelog: https://github.com/DeterminateSystems/fh/releases/tag/v0.1.7
2023-10-16 21:36:44 -03:00
R. Ryantm
fb26673645 fh: 0.1.5 -> 0.1.6 2023-10-08 15:03:06 +00:00
figsoda
7096c7760f fh: 0.1.4 -> 0.1.5
Diff: https://github.com/DeterminateSystems/fh/compare/v0.1.4...v0.1.5

Changelog: https://github.com/DeterminateSystems/fh/releases/tag/v0.1.5
2023-09-19 13:40:45 -04:00
figsoda
676f94431d fh: 0.1.3 -> 0.1.4
Diff: https://github.com/DeterminateSystems/fh/compare/v0.1.3...v0.1.4
2023-09-15 10:12:11 -04:00
figsoda
954a416000 fh: 0.1.2 -> 0.1.3
Diff: https://github.com/DeterminateSystems/fh/compare/v0.1.2...v0.1.3
2023-09-04 15:05:15 -04:00
figsoda
cae006e4d0 fh: 0.1.1 -> 0.1.2
Diff: https://github.com/DeterminateSystems/fh/compare/v0.1.1...v0.1.2
2023-09-01 17:59:16 -04:00
figsoda
da2da3adce fh: init at 0.1.1
https://github.com/DeterminateSystems/fh
2023-09-01 18:35:02 +00:00