Commit Graph

21 Commits

Author SHA1 Message Date
R. Ryantm
3b603722f9
fnm: 1.37.2 -> 1.38.1 2024-11-22 08:36:33 -05:00
R. Ryantm
ce6fb6d8b0 fnm: 1.37.1 -> 1.37.2 2024-10-07 02:15:17 +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
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
25765e4bf2 fnm: 1.37.0 -> 1.37.1 2024-06-13 13:35:35 +00:00
R. Ryantm
56cf1db808 fnm: 1.36.0 -> 1.37.0 2024-06-03 12:46:17 +00:00
R. Ryantm
26e1bf519f fnm: 1.35.1 -> 1.36.0 2024-05-28 14:54:01 +00:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Ryan Cao
39fe8e960c
fnm: 1.35.0 -> 1.35.1 2023-08-16 14:34:32 +08:00
R. Ryantm
5a9f33efbf fnm: 1.34.0 -> 1.35.0 2023-07-14 12:04:27 +00:00
R. Ryantm
138beed99a fnm: 1.33.1 -> 1.34.0 2023-07-06 03:52:20 +00:00
R. Ryantm
b067891b50 fnm: 1.32.0 -> 1.33.1 2022-12-08 18:24:38 +00:00
R. Ryantm
e7f13761d4 fnm: 1.31.1 -> 1.32.0 2022-11-18 03:07:42 +00:00
R. Ryantm
6d6a532bf4 fnm: 1.31.0 -> 1.31.1 2022-07-28 05:43:55 +00:00
R. Ryantm
52ec620464 fnm: 1.30.1 -> 1.31.0 2022-02-18 08:12:16 +00:00
R. Ryantm
e28205b3fe fnm: 1.29.2 -> 1.30.1 2022-02-11 11:52:22 +00:00
R. Ryantm
74a565dac5 fnm: 1.28.2 -> 1.29.2 2022-01-11 08:47:04 +00:00
R. Ryantm
b6a9d04b9f fnm: 1.28.1 -> 1.28.2 2021-12-06 23:06:04 +00:00
Kid
c3a57a6285
fnm: 1.27.0 -> 1.28.1 (#147798)
Co-authored-by: Bobby Rong <rjl931189261@126.com>
2021-12-05 02:04:28 +01:00
R. RyanTM
c474fb2ba3 fnm: 1.26.0 -> 1.27.0 2021-09-17 05:17:31 +00:00
Kid
fe01052444
fnm: init at 1.26.0 (#130788)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-08-10 16:31:46 +02:00