Skip to content

Commit

Permalink
darwin.openwith: unbreak on x86_64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed May 14, 2024
1 parent d1414f5 commit e5d9b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkgs/os-specific/darwin/openwith/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib, stdenv, fetchFromGitHub, swift, AppKit, Foundation, UniformTypeIdentifiers }:
{ lib, swiftPackages, fetchFromGitHub }:

let
inherit (swiftPackages) apple_sdk stdenv swift;
arch = if stdenv.isAarch64 then "arm64" else "x86_64";
in
stdenv.mkDerivation rec {
Expand All @@ -16,7 +17,7 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ swift ];

buildInputs = [ AppKit Foundation UniformTypeIdentifiers ];
buildInputs = with apple_sdk.frameworks; [ AppKit Foundation UniformTypeIdentifiers ];

makeFlags = [ "openwith_${arch}" ];

Expand All @@ -32,6 +33,5 @@ stdenv.mkDerivation rec {
license = licenses.unlicense;
maintainers = with maintainers; [ zowoq ];
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
broken = stdenv.isx86_64; # https://hydra.nixos.org/build/219354133/nixlog/3
};
}
4 changes: 1 addition & 3 deletions pkgs/top-level/darwin-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ impure-cmds // appleSourcePackages // chooseLibs // {
inherit (apple_sdk_11_0.libs) simd;
};

openwith = pkgs.darwin.apple_sdk_11_0.callPackage ../os-specific/darwin/openwith {
inherit (apple_sdk_11_0.frameworks) AppKit Foundation UniformTypeIdentifiers;
};
openwith = callPackage ../os-specific/darwin/openwith { };

stubs = pkgs.callPackages ../os-specific/darwin/stubs { };

Expand Down

0 comments on commit e5d9b19

Please sign in to comment.