about summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/openwith/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/darwin/openwith/default.nix')
-rw-r--r--pkgs/os-specific/darwin/openwith/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/os-specific/darwin/openwith/default.nix b/pkgs/os-specific/darwin/openwith/default.nix
index d28ed4942821..3631f7d495be 100644
--- a/pkgs/os-specific/darwin/openwith/default.nix
+++ b/pkgs/os-specific/darwin/openwith/default.nix
@@ -1,8 +1,8 @@
 { lib, swiftPackages, fetchFromGitHub }:
 
 let
-  inherit (swiftPackages) apple_sdk stdenv swift;
-  arch = if stdenv.isAarch64 then "arm64" else "x86_64";
+  inherit (swiftPackages) stdenv swift;
+  arch = if stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64";
 in
 stdenv.mkDerivation rec {
   pname = "openwith";
@@ -17,8 +17,6 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ swift ];
 
-  buildInputs = with apple_sdk.frameworks; [ AppKit Foundation UniformTypeIdentifiers ];
-
   makeFlags = [ "openwith_${arch}" ];
 
   installPhase = ''