Commit Graph

12 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
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
R. Ryantm
c25de3eb1c magic-wormhole-rs: 0.7.0 -> 0.7.1 2024-07-28 04:00:25 +00:00
R. Ryantm
d843cb60b2 magic-wormhole-rs: 0.6.1 -> 0.7.0 2024-07-18 00:18:49 +00:00
R. Ryantm
151b36a7df magic-wormhole-rs: 0.6.0 -> 0.6.1 2023-12-05 09:27:47 +00:00
Georg Haas
c216db0900
magic-wormhole-rs: 0.5.0 -> 0.6.0 2022-12-21 23:46:30 +01:00
Sebastián Mancilla
e212af64e8 magic-wormhole-rs: mark as unbroken on darwin
Marked as broken by #173671 but builds and works fine on darwin, with
sandbox enabled.
2022-07-09 22:59:01 -04:00
Sandro
b2dc65f399
Merge pull request #174626 from dywedir/magic-wormhole-rs
magic-wormhole-rs: 0.3.0 -> 0.5.0
2022-05-30 23:36:36 +02:00
Rick van Schijndel
cd3c25616d treewide: pkgs/tools: mark broken for darwin
All packages that were failing on x86_64-darwin are marked broken.
I'm assuming here that these are also broken on aarch64-darwin.
2022-05-29 10:56:04 +02:00
Vladyslav M
a655844561 magic-wormhole-rs: 0.3.0 -> 0.5.0 2022-05-29 00:02:10 +03:00
Sandro Jäckel
a98504952f
magic-wormhole-rs: fix pname 2022-05-01 23:34:25 +02:00
zeri42
dc39d05a53 magic-wormhole-rs: init at 0.3.0 2022-03-17 22:27:19 +01:00