Commit Graph

9 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
R. Ryantm
a8b5fb605b nstool: 1.9.0 -> 1.9.1 2024-08-21 20:13:06 +00:00
diadatp
3f900de540 nstool: init at 1.9.0 2024-07-31 19:06:28 +05:30
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
Weijia Wang
91187dcb6c nsplist: migrate to by-name, refactor 2024-01-13 07:17:11 +01:00
h7x4
3c97878788
nsf-ordlista: init at unstable-2023-08-20 2023-11-09 09:50:05 +01:00
Anderson Torres
acc76ae3ec nsxiv: 31 -> 32
Co-authored-by: R. Ryantm <ryantm-bot@ryantm.com>
Co-authored-by: R. RyanTM <ryantm-bot@ryantm.com>
2023-10-12 01:30:41 -03:00
Anderson Torres
26e1af1aa7 nsxiv: improve
- finalAttrs
- multiple outputs
- no nested with
2023-10-12 01:30:41 -03:00
Anderson Torres
7d44850eed nsxiv: migrate to by-name 2023-10-12 01:30:41 -03:00