about summary refs log tree commit diff
path: root/pkgs/by-name/ht/httptoolkit/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ht/httptoolkit/package.nix')
-rw-r--r--pkgs/by-name/ht/httptoolkit/package.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/by-name/ht/httptoolkit/package.nix b/pkgs/by-name/ht/httptoolkit/package.nix
index 173e093cb71c..5b2acf02bb0d 100644
--- a/pkgs/by-name/ht/httptoolkit/package.nix
+++ b/pkgs/by-name/ht/httptoolkit/package.nix
@@ -29,7 +29,9 @@ buildNpmPackage rec {
     CSC_IDENTITY_AUTO_DISCOVERY = "false";
   };
 
-  nativeBuildInputs = [ makeWrapper ] ++ lib.optionals stdenv.isLinux [ copyDesktopItems ];
+  nativeBuildInputs = [
+    makeWrapper
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [ copyDesktopItems ];
 
   npmBuildScript = "build:src";
 
@@ -50,7 +52,7 @@ buildNpmPackage rec {
   installPhase = ''
     runHook preInstall
 
-    ${lib.optionalString stdenv.isLinux ''
+    ${lib.optionalString stdenv.hostPlatform.isLinux ''
       mkdir -p $out/share/httptoolkit
       cp -r dist/*-unpacked/{locales,resources{,.pak}} $out/share/httptoolkit
 
@@ -64,7 +66,7 @@ buildNpmPackage rec {
           --inherit-argv0
     ''}
 
-    ${lib.optionalString stdenv.isDarwin ''
+    ${lib.optionalString stdenv.hostPlatform.isDarwin ''
       mkdir -p $out/Applications
       cp -r dist/mac*/"HTTP Toolkit.app" $out/Applications