openwith: move to by-name, use darwinArch

This commit is contained in:
zowoq
2025-11-28 20:16:40 +10:00
parent 3346f629aa
commit 8c7bd519ad
3 changed files with 4 additions and 5 deletions
@@ -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
'';
+1
View File
@@ -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
-2
View File
@@ -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;