Commit Graph

12 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
aleksana
a9709c299b treewide: change cargoSha256 with SRI hash to cargoHash 2024-07-03 21:53:11 +08:00
h7x4
8121f3559a
treewide: add mainProgram 2024-02-11 03:19:15 +01:00
figsoda
7e98e1d989 menyoki: 1.6.1 -> 1.7.0
Diff: https://github.com/orhun/menyoki/compare/v1.6.1...v1.7.0

Changelog: https://github.com/orhun/menyoki/blob/v1.7.0/CHANGELOG.md
2023-03-01 17:20:01 -05:00
Artturin
61c3058bcb all-packages.nix: remove inherit (*xorg) *'s
using inherits in callPackage args is discouraged and doesn't splice
correctly
2022-10-14 20:48:09 +03:00
figsoda
78ed4d7a93 menyoki: 1.6.0 -> 1.6.1 2022-07-28 13:53:58 +08:00
R. Ryantm
0342d39a7d menyoki: 1.5.6 -> 1.6.0 2022-03-08 13:36:46 +00:00
R. Ryantm
8fbbb41354 menyoki: 1.5.5 -> 1.5.6 2022-01-24 18:59:42 +00:00
figsoda
009c51b5ae menyoki: fix darwin build 2021-11-16 21:05:36 -05:00
figsoda
104fd24044 menyoki: use buildNoDefaultFeatures 2021-11-16 08:35:09 -05:00
figsoda
52a9acab7c menyoki: 1.5.3 -> 1.5.5 2021-11-02 08:36:34 -04:00
figsoda
712f00a9a1 menyoki: init at 1.5.3 2021-09-10 08:23:39 -04:00