about summary refs log tree commit diff
path: root/pkgs/applications/office/espanso/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/espanso/default.nix')
-rw-r--r--pkgs/applications/office/espanso/default.nix22
1 files changed, 11 insertions, 11 deletions
diff --git a/pkgs/applications/office/espanso/default.nix b/pkgs/applications/office/espanso/default.nix
index c8883f36339e..5679c44ca2dc 100644
--- a/pkgs/applications/office/espanso/default.nix
+++ b/pkgs/applications/office/espanso/default.nix
@@ -30,14 +30,14 @@
 , WebKit
 , System
 , waylandSupport ? false
-, x11Support ? stdenv.isLinux
+, x11Support ? stdenv.hostPlatform.isLinux
 , testers
 , espanso
 }:
 # espanso does not support building with both X11 and Wayland support at the same time
-assert stdenv.isLinux -> x11Support != waylandSupport;
-assert stdenv.isDarwin -> !x11Support;
-assert stdenv.isDarwin -> !waylandSupport;
+assert stdenv.hostPlatform.isLinux -> x11Support != waylandSupport;
+assert stdenv.hostPlatform.isDarwin -> !x11Support;
+assert stdenv.hostPlatform.isDarwin -> !waylandSupport;
 rustPlatform.buildRustPackage rec {
   pname = "espanso";
   version = "2.2-unstable-2024-05-14";
@@ -69,20 +69,20 @@ rustPlatform.buildRustPackage rec {
     "modulo"
   ] ++ lib.optionals waylandSupport [
     "wayland"
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     "vendored-tls"
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     "native-tls"
   ];
 
   buildInputs = [
     wxGTK32
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     openssl
     dbus
     libnotify
     libxkbcommon
-  ] ++ lib.optionals stdenv.isDarwin [
+  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
     AppKit
     Cocoa
     Foundation
@@ -104,7 +104,7 @@ rustPlatform.buildRustPackage rec {
     xdotool
   ];
 
-  postPatch = lib.optionalString stdenv.isDarwin ''
+  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace scripts/create_bundle.sh \
       --replace-fail target/mac/ $out/Applications/ \
       --replace-fail /bin/echo ${coreutils}/bin/echo
@@ -119,12 +119,12 @@ rustPlatform.buildRustPackage rec {
   doCheck = false;
 
   postInstall =
-    if stdenv.isDarwin then ''
+    if stdenv.hostPlatform.isDarwin then ''
       EXEC_PATH=$out/bin/espanso BUILD_ARCH=current ${stdenv.shell} ./scripts/create_bundle.sh
     '' else ''
       wrapProgram $out/bin/espanso \
         --prefix PATH : ${lib.makeBinPath (
-          lib.optionals stdenv.isLinux [
+          lib.optionals stdenv.hostPlatform.isLinux [
             libnotify
             setxkbmap
           ] ++ lib.optionals waylandSupport [