1 { fetchzip, lib, stdenvNoCC }:
3 stdenvNoCC.mkDerivation rec {
4 pname = "swiftdefaultapps";
7 # Fetch the release which includes the prebuild binary since this is a Swift project and nixpkgs
8 # doesn't currently have the ability to build Swift projects.
10 url = "https://github.com/Lord-Kamina/SwiftDefaultApps/releases/download/v${version}/SwiftDefaultApps-v${version}.zip";
12 sha256 = "sha256-0HsHjZBPUzmdvHy7E9EdZj6zwaXjSX2u5aj8pij0u3E=";
17 install -D './swda' "$out/bin/swda"
22 description = "View and change the default application for url schemes and UTIs";
23 homepage = "https://github.com/Lord-Kamina/SwiftDefaultApps";
24 license = licenses.beerware;
25 maintainers = [ maintainers.malo ];
26 platforms = platforms.darwin;