8 inherit (swiftPackages) stdenv swift;
9 arch = if stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64";
11 stdenv.mkDerivation rec {
13 version = "unstable-2022-10-28";
15 src = fetchFromGitHub {
18 rev = "a8a99ba0d1cabee7cb470994a1e2507385c30b6e";
19 hash = "sha256-lysleg3qM2MndXeKjNk+Y9Tkk40urXA2ZdxY5KZNANo=";
22 nativeBuildInputs = [ swift ];
24 makeFlags = [ "openwith_${arch}" ];
28 install openwith_${arch} -D $out/bin/openwith
33 description = "Utility to specify which application bundle should open specific file extensions";
34 homepage = "https://github.com/jdek/openwith";
35 license = licenses.unlicense;
36 maintainers = with maintainers; [ zowoq ];