openwith: move to by-name, use darwinArch
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
let
|
||||
inherit (swiftPackages) stdenv swift;
|
||||
arch = if stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64";
|
||||
inherit (stdenv.hostPlatform) darwinArch;
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "openwith";
|
||||
@@ -21,11 +21,11 @@ stdenv.mkDerivation {
|
||||
|
||||
nativeBuildInputs = [ swift ];
|
||||
|
||||
makeFlags = [ "openwith_${arch}" ];
|
||||
makeFlags = [ "openwith_${darwinArch}" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install openwith_${arch} -D $out/bin/openwith
|
||||
install openwith_${darwinArch} -D $out/bin/openwith
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
@@ -138,6 +138,7 @@ stubs
|
||||
### O ###
|
||||
|
||||
opencflite = pkgs.opencflite; # added 2024-05-02
|
||||
openwith = pkgs.openwith; # added 2025-11-28
|
||||
|
||||
### P ###
|
||||
postLinkSignHook = throw "'darwin.postLinkSignHook' has been removed because it is obsolete"; # added 2025-02-23
|
||||
|
||||
@@ -116,8 +116,6 @@ makeScopeWithSplicing' {
|
||||
|
||||
lsusb = callPackage ../os-specific/darwin/lsusb { };
|
||||
|
||||
openwith = callPackage ../os-specific/darwin/openwith { };
|
||||
|
||||
trash = callPackage ../os-specific/darwin/trash { };
|
||||
|
||||
inherit (self.file_cmds) xattr;
|
||||
|
||||
Reference in New Issue
Block a user