swift-quit: init at 1.5 (#343928)

authored by Weijia Wang and committed by GitHub d6fd15c0 d77a63ce

+36
+36
pkgs/by-name/sw/swift-quit/package.nix
···
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchurl, 5 + unzip, 6 + }: 7 + stdenvNoCC.mkDerivation (finalAttrs: { 8 + pname = "swift-quit"; 9 + version = "1.5"; 10 + 11 + src = fetchurl { 12 + url = "https://github.com/onebadidea/swiftquit/releases/download/v${finalAttrs.version}/Swift.Quit.zip"; 13 + sha256 = "sha256-pORnyxOhTc/zykBHF5ujsWEZ9FjNauJGeBDz9bnHTvs="; 14 + }; 15 + dontUnpack = true; 16 + 17 + nativeBuildInputs = [ unzip ]; 18 + 19 + installPhase = '' 20 + runHook preInstall 21 + 22 + mkdir -p $out/Applications 23 + unzip -d $out/Applications $src 24 + 25 + runHook postInstall 26 + ''; 27 + 28 + meta = { 29 + description = "Automatic quitting of macOS apps when closing their windows."; 30 + homepage = "https://swiftquit.com/"; 31 + license = lib.licenses.gpl3; 32 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 33 + maintainers = with lib.maintainers; [ Enzime ]; 34 + platforms = lib.platforms.darwin; 35 + }; 36 + })