Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 951 B view raw
1{ 2 fetchzip, 3 lib, 4 stdenvNoCC, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "swiftdefaultapps"; 9 version = "2.0.1"; 10 11 # Fetch the release which includes the prebuild binary since this is a Swift project and nixpkgs 12 # doesn't currently have the ability to build Swift projects. 13 src = fetchzip { 14 url = "https://github.com/Lord-Kamina/SwiftDefaultApps/releases/download/v${version}/SwiftDefaultApps-v${version}.zip"; 15 stripRoot = false; 16 sha256 = "sha256-0HsHjZBPUzmdvHy7E9EdZj6zwaXjSX2u5aj8pij0u3E="; 17 }; 18 19 installPhase = '' 20 runHook preInstall 21 install -D './swda' "$out/bin/swda" 22 runHook postInstall 23 ''; 24 25 meta = with lib; { 26 description = "View and change the default application for url schemes and UTIs"; 27 homepage = "https://github.com/Lord-Kamina/SwiftDefaultApps"; 28 license = licenses.beerware; 29 maintainers = [ maintainers.malo ]; 30 platforms = platforms.darwin; 31 mainProgram = "swda"; 32 }; 33}