Commit Graph

14 Commits

Author SHA1 Message Date
xrelkd
008dde73c3
clipcat: 0.18.3 -> 0.19.0 2024-10-26 15:25:04 +08:00
wxt
7fc412404a clipcat: fix build 2024-10-22 18:50:59 +08:00
wxt
fb6b402c3e clipcat: nixfmt 2024-10-22 18:46:46 +08: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
xrelkd
6115ead9b1
clipcat: 0.18.1 -> 0.18.3
Diff: https://github.com/xrelkd/clipcat/compare/v0.18.1...v0.18.3
2024-08-10 13:44:59 +08: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
f74f819ce1 clipcat: 0.18.0 -> 0.18.1 2024-06-26 16:00:32 +00:00
xrelkd
803b271c9c
clipcat: 0.17.0 -> 0.18.0
Diff: https://github.com/xrelkd/clipcat/compare/v0.17.0...v0.18.0
2024-06-01 17:12:24 +08:00
xrelkd
085a5202c5
clipcat: 0.16.6 -> 0.17.0 2024-04-21 17:56:57 +08:00
R. Ryantm
6b09031c2c clipcat: 0.16.5 -> 0.16.6 2024-04-14 12:32:48 +00:00
R. Ryantm
f8654bdccb clipcat: 0.16.4 -> 0.16.5 2024-04-06 12:31:08 +00:00
xrelkd
1deb29f9f4
clipcat: 0.16.3 -> 0.16.4 2024-01-25 21:56:32 +08:00
xrelkd
83ea558423
clipcat: 0.16.2 -> 0.16.3
Diff: https://github.com/xrelkd/clipcat/compare/v0.16.2...v0.16.3
2024-01-23 18:39:15 +08:00
xrelkd
b4ccacc6cc
clipcat: migrate to by-name 2024-01-23 18:38:28 +08:00