1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/applications/editors/emacs/elisp-packages
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
..
manual-packages emacsPackages.zstd: init at 0-unstable-2020-06-03 2024-09-22 18:00:00 +02:00
elpa-common-overrides.nix emacsPackages.eglot: only build info manual when needed 2024-09-16 09:42:12 +08:00
elpa-devel-generated.nix elpa-devel-packages: updated 2024-08-20 (from overlay) 2024-08-20 23:19:16 +08:00
elpa-devel-packages.nix emacs: factor out elisp package override helpers 2024-09-16 04:42:31 +08:00
elpa-generated.nix elpa-packages: updated 2024-08-20 (from overlay) 2024-08-20 23:19:14 +08:00
elpa-packages.nix emacs: factor out elisp package override helpers 2024-09-16 04:42:31 +08:00
emacs2nix.nix emacs: bump emacs2nix to fix generating duplicated entries 2024-08-03 01:14:16 +08:00
fetchelpa.nix
lib-override-helper.nix emacs: factor out elisp package override helpers 2024-09-16 04:42:31 +08:00
libgenerated.nix
manual-packages.nix emacsPackages.zstd: init at 0-unstable-2020-06-03 2024-09-22 18:00:00 +02:00
melpa-packages.nix treewide: replace stdenv.is with stdenv.hostPlatform.is 2024-09-25 00:04:37 +03:00
nongnu-common-overrides.nix emacs: factor out common overrides for nongnu packages 2024-09-14 13:49:44 +08:00
nongnu-devel-generated.nix nongnu-devel-packages: updated 2024-08-20 (from overlay) 2024-08-20 23:19:18 +08:00
nongnu-devel-packages.nix emacs: factor out common overrides for nongnu packages 2024-09-14 13:49:44 +08:00
nongnu-generated.nix nongnu-packages: updated 2024-08-20 (from overlay) 2024-08-20 23:19:17 +08:00
nongnu-packages.nix emacs: factor out common overrides for nongnu packages 2024-09-14 13:49:44 +08:00
recipes-archive-melpa.json melpa-packages: updated 2024-08-20 (from overlay) 2024-08-20 23:19:17 +08:00
update
update-elpa
update-elpa-devel
update-from-overlay
update-from-overlay.flake.sh
update-manual
update-manual.nix
update-melpa
update-melpa.el
update-nongnu
update-nongnu-devel
updater-emacs.nix