about summary refs log tree commit diff
path: root/pkgs/by-name/cl/cloudlogoffline/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/cl/cloudlogoffline/package.nix')
-rw-r--r--pkgs/by-name/cl/cloudlogoffline/package.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/by-name/cl/cloudlogoffline/package.nix b/pkgs/by-name/cl/cloudlogoffline/package.nix
index 04e6f0ed2c32..027e91d5eb3a 100644
--- a/pkgs/by-name/cl/cloudlogoffline/package.nix
+++ b/pkgs/by-name/cl/cloudlogoffline/package.nix
@@ -21,7 +21,7 @@ stdenv.mkDerivation (self: {
     qt6.qmake
     qt6.wrapQtAppsHook
   ]
-  ++ lib.optionals (!stdenv.isDarwin) [
+  ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
     copyDesktopItems
   ];
 
@@ -33,16 +33,16 @@ stdenv.mkDerivation (self: {
   ];
 
   postPatch = let
-    targetDir = if stdenv.isDarwin then "Applications" else "bin";
+    targetDir = if stdenv.hostPlatform.isDarwin then "Applications" else "bin";
   in ''
     substituteInPlace CloudLogOffline.pro \
       --replace 'target.path = /opt/$''${TARGET}/bin' "target.path = $out/${targetDir}"
   '';
 
-  postInstall = lib.optionalString (!stdenv.isDarwin) ''
+  postInstall = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
     install -d $out/share/pixmaps
     install -m644 images/logo_circle.svg $out/share/pixmaps/cloudlogoffline.svg
-  '' + lib.optionalString stdenv.isDarwin ''
+  '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
     # FIXME: For some reason, the Info.plist isn't copied correctly to
     # the application bundle when building normally, instead creating an
     # empty file. This doesn't happen when building in a dev shell with
@@ -53,7 +53,7 @@ stdenv.mkDerivation (self: {
     install -m644 macos/Info.plist $out/Applications/CloudLogOffline.app/Contents/Info.plist
   '';
 
-  desktopItems = lib.optionals (!stdenv.isDarwin) [
+  desktopItems = lib.optionals (!stdenv.hostPlatform.isDarwin) [
     (makeDesktopItem {
       name = "cloudlogoffline";
       desktopName = "CloudLogOffline";