about summary refs log tree commit diff
path: root/pkgs/by-name/ne/neovim-unwrapped/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ne/neovim-unwrapped/package.nix')
-rw-r--r--pkgs/by-name/ne/neovim-unwrapped/package.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix
index c66597da3ae8..b37ba7fd2d94 100644
--- a/pkgs/by-name/ne/neovim-unwrapped/package.nix
+++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix
@@ -16,7 +16,7 @@
 }:
 stdenv.mkDerivation (finalAttrs:
   let
-  nvim-lpeg-dylib = luapkgs: if stdenv.isDarwin
+  nvim-lpeg-dylib = luapkgs: if stdenv.hostPlatform.isDarwin
     then (luapkgs.lpeg.overrideAttrs (oa: {
       preConfigure = ''
         # neovim wants clang .dylib
@@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs:
       nativeBuildInputs =
         oa.nativeBuildInputs
         ++ (
-          lib.optional stdenv.isDarwin fixDarwinDylibNames
+          lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames
         );
     }))
     else luapkgs.lpeg;
@@ -104,7 +104,7 @@ in {
       neovimLuaEnv
       tree-sitter
       unibilium
-    ] ++ lib.optionals stdenv.isDarwin [ libiconv CoreServices ]
+    ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv CoreServices ]
       ++ lib.optionals finalAttrs.finalPackage.doCheck [ glibcLocales procps ]
     ;
 
@@ -168,7 +168,7 @@ in {
       "-DLUA_PRG=${neovimLuaEnvOnBuild}/bin/luajit"
     ];
 
-    preConfigure = lib.optionalString stdenv.isDarwin ''
+    preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
       substituteInPlace src/nvim/CMakeLists.txt --replace "    util" ""
     '' + ''
       mkdir -p $out/lib/nvim/parser