Commit Graph

19 Commits

Author SHA1 Message Date
R. Ryantm
1d5add95c5 maa-cli: 0.4.12 -> 0.5.1 2024-10-23 02:29:49 +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
R. Ryantm
6a3ccb0d74 maa-cli: 0.4.11 -> 0.4.12 2024-08-28 01:56:05 +00:00
R. Ryantm
a419f4cacc maa-cli: 0.4.10 -> 0.4.11 2024-08-19 11:27:04 +00:00
R. Ryantm
3cddf1e43e maa-cli: 0.4.9 -> 0.4.10 2024-08-12 05:33:58 +00:00
Aleksana
a01c6c7e74
Merge pull request #332659 from Cryolitia/maa-cli
maa-cli: disable build feature `core_installer`
2024-08-06 19:01:02 +08: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
Cryolitia PukNgae
ce39f8f574
maa-cli: disable build feature core_installer
To prevent user from downloading MaaCore prebuild binary
2024-08-06 00:45:03 +07:00
R. Ryantm
3fcb87d5ba maa-cli: 0.4.8 -> 0.4.9 2024-08-04 03:02:36 +00:00
Julius Michaelis
11d02a13f8 maa-cli: nixfmt 2024-08-04 10:55:16 +09: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
0c936986c2 maa-cli: 0.4.7 -> 0.4.8 2024-07-16 03:04:54 +00: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
北雁 Cryolitia
88c495fdf6
maa-cli: support darwin 2024-06-03 15:30:07 +08:00
R. Ryantm
474f24e5d2 maa-cli: 0.4.6 -> 0.4.7 2024-04-27 07:10:23 +00:00
R. Ryantm
157b2441a7 maa-cli: 0.4.5 -> 0.4.6 2024-04-22 01:13:57 +00:00
北雁 Cryolitia
4d7913a922
maa-cli: license agpl3Plus -> agpl3Only
upstream change: https://github.com/MaaAssistantArknights/maa-cli/pull/234
2024-04-03 03:26:51 +08:00
北雁 Cryolitia
d061e281bf
maa-cli: 0.4.4 -> 0.4.5 2024-03-28 19:34:55 +08:00
北雁 Cryolitia
42f0200b32
maa-cli: init at 0.4.4 2024-03-26 03:12:26 +08:00