Commit Graph

17 Commits

Author SHA1 Message Date
Aaron Jheng
01c7c61a41
pixi: 0.31.0 -> 0.34.0 2024-10-22 16:11:43 +08:00
Aaron Jheng
ef29f8307d
pixi: 0.27.1 -> 0.31.0 2024-10-06 00:50:24 +00:00
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
Aaron Jheng
350f1c3211
pixi: 0.26.1 -> 0.27.1 2024-08-09 14:18:58 +00:00
Peder Bergebakken Sundt
462b96d2a1
Merge pull request #326243 from jcaesar/pr-13
treewide: skip generating shell completions using $out/bin/… when cross compiling
2024-08-06 08:15:56 +02:00
happysalada
981cedc098 pixi: fix darwin build
disable failing tests for darwin
2024-08-04 20:57:46 -04: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
Aaron Jheng
16c1c57ea5
pixi: 0.24.2 -> 0.26.1 2024-07-24 14:24:10 +00:00
Aaron Jheng
cdf86e638c
pixi: 0.23.0 -> 0.24.2 2024-06-21 09:43:37 +08:00
Aaron Jheng
9282fcb738
pixi: 0.20.0 -> 0.23.0 2024-06-07 09:47:31 +08:00
Aaron Jheng
97fd6d573e
pixi: 0.19.1 -> 0.20.0 2024-04-22 16:16:54 +08:00
Aaron Jheng
dfe8984ad4
pixi: 0.17.1 -> 0.19.1 2024-04-15 13:45:05 +08:00
Aaron Jheng
9a05581e2c
pixi: 0.15.2 -> 0.17.1 2024-03-22 09:45:31 +08:00
Aaron Jheng
a097e57c17
pixi: 0.13.0 -> 0.15.2 2024-03-08 10:52:23 +08:00
Aaron Jheng
fff7a81824
pixi: 0.11.1 -> 0.13.0 2024-02-01 23:49:11 +08:00
Edmund Miller
8f064d0320
pixi: add edmundmiller to maintainers 2024-01-27 13:56:25 -06:00
Aaron Jheng
163bdda8fc
pixi: init at 0.11.1 2024-01-14 19:59:39 +08:00