treewide: convert stdenv.{isLinux,isDarwin} alias to stdenv.hostPlatform.{isLinux,isDarwin}

This commit is contained in:
Sandro Jäckel
2026-08-31 15:26:58 +00:00
committed by Austin Horstman
parent 8c096abcf3
commit 41844750e5
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
};
stylua.enable = true;
# FIXME: re-enable on darwin, currently broken: taplo with options '[format]' failed to apply: exit status 101
taplo.enable = pkgs.stdenv.isLinux;
taplo.enable = pkgs.stdenv.hostPlatform.isLinux;
# keep-sorted end
};
+1 -1
View File
@@ -59,7 +59,7 @@ lib.nixvim.plugins.mkVimPlugin {
extraPackages =
let
# xdotool does not exist on darwin
xdotool = lib.optional pkgs.stdenv.isLinux cfg.xdotoolPackage;
xdotool = lib.optional pkgs.stdenv.hostPlatform.isLinux cfg.xdotoolPackage;
viewerPackages =
{
general = xdotool;
@@ -2,13 +2,13 @@
{
empty = {
# NOTE: 2024-10-10 when marked as linux specific platform
plugins.magma-nvim.enable = pkgs.stdenv.isLinux;
plugins.magma-nvim.enable = pkgs.stdenv.hostPlatform.isLinux;
};
defaults = {
plugins.magma-nvim = {
# NOTE: 2024-10-10 when marked as linux specific platform
enable = pkgs.stdenv.isLinux;
enable = pkgs.stdenv.hostPlatform.isLinux;
settings = {
image_provider = "none";
@@ -1,7 +1,7 @@
{ pkgs }:
# Fails on darwin with:
# E5113: Error while calling lua chunk: ...ckages/start/netman.nvim/lua/netman/tools/utils/init.lua:52: Unable to open netman utils cache
pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
pkgs.lib.optionalAttrs (!pkgs.stdenv.hostPlatform.isDarwin) {
empty = {
plugins.netman.enable = true;
};
@@ -2,14 +2,14 @@
empty =
{ pkgs, ... }:
{
plugins.perfanno.enable = !pkgs.stdenv.isDarwin;
plugins.perfanno.enable = !pkgs.stdenv.hostPlatform.isDarwin;
};
example =
{ pkgs, ... }:
{
plugins.perfanno = {
enable = !pkgs.stdenv.isDarwin;
enable = !pkgs.stdenv.hostPlatform.isDarwin;
settings = {
line_highlights.__raw = ''require("perfanno.util").make_bg_highlights(nil, "#CC3300", 10)'';