about summary refs log tree commit diff
path: root/pkgs/by-name/fa/fastfetch/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/fa/fastfetch/package.nix')
-rw-r--r--pkgs/by-name/fa/fastfetch/package.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/by-name/fa/fastfetch/package.nix b/pkgs/by-name/fa/fastfetch/package.nix
index 05723d9fa4a6..3a52b165b58a 100644
--- a/pkgs/by-name/fa/fastfetch/package.nix
+++ b/pkgs/by-name/fa/fastfetch/package.nix
@@ -43,7 +43,7 @@
   x11Support ? true,
 }:
 let
-  stdenv' = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
+  stdenv' = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
 in
 stdenv'.mkDerivation (finalAttrs: {
   pname = "fastfetch";
@@ -77,7 +77,7 @@ stdenv'.mkDerivation (finalAttrs: {
       sqlite
       yyjson
     ]
-    ++ lib.optionals stdenv.isLinux [
+    ++ lib.optionals stdenv.hostPlatform.isLinux [
       dbus
       dconf
       ddcutil
@@ -103,8 +103,8 @@ stdenv'.mkDerivation (finalAttrs: {
       xorg.libXdmcp
       xorg.libXext
     ]
-    ++ lib.optionals (x11Support && (!stdenv.isDarwin)) [ xfce.xfconf ]
-    ++ lib.optionals stdenv.isDarwin (
+    ++ lib.optionals (x11Support && (!stdenv.hostPlatform.isDarwin)) [ xfce.xfconf ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin (
       with darwin.apple_sdk_11_0.frameworks;
       [
         Apple80211
@@ -138,10 +138,10 @@ stdenv'.mkDerivation (finalAttrs: {
       (lib.cmakeBool "ENABLE_X11" x11Support)
       (lib.cmakeBool "ENABLE_XCB" x11Support)
       (lib.cmakeBool "ENABLE_XCB_RANDR" x11Support)
-      (lib.cmakeBool "ENABLE_XFCONF" (x11Support && (!stdenv.isDarwin)))
+      (lib.cmakeBool "ENABLE_XFCONF" (x11Support && (!stdenv.hostPlatform.isDarwin)))
       (lib.cmakeBool "ENABLE_XRANDR" x11Support)
     ]
-    ++ lib.optionals stdenv.isLinux [
+    ++ lib.optionals stdenv.hostPlatform.isLinux [
       (lib.cmakeOptionType "filepath" "CUSTOM_PCI_IDS_PATH" "${hwdata}/share/hwdata/pci.ids")
       (lib.cmakeOptionType "filepath" "CUSTOM_AMDGPU_IDS_PATH" "${libdrm}/share/libdrm/amdgpu.ids")
     ];