Commit Graph

10 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
Peder Bergebakken Sundt
a4eeebb0f6 dictu: remove hardcoded /build 2024-08-02 23:45:54 +02: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
R. Ryantm
2fa9280b1e dictu: 0.24.0 -> 0.25.0 2022-05-27 08:47:52 +00:00
R. Ryantm
df751f5488 dictu: 0.23.0 -> 0.24.0 2022-03-07 04:08:14 +00:00
R. RyanTM
31f069f779
dictu: 0.22.0 -> 0.23.0
(#154436)
2022-01-15 22:20:46 +01:00
Dmitry Kalinkin
dd0b7b6a17
dictu: mark as broken on darwin 2021-12-24 22:00:23 -05:00
R. Ryantm
602aa1fffe dictu: 0.20.0 -> 0.22.0 2021-10-29 09:58:00 +00:00
R. RyanTM
2b2a534741 dictu: 0.19.0 -> 0.20.0 2021-08-09 17:24:52 +00:00
Lucas Ransan
92e201e938
dictu: init at 0.19.0 2021-08-03 20:42:35 +02:00