2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
2024-06-20 14:57:18 +00:00
|
|
|
nix-update-script,
|
2024-06-05 15:53:02 +00:00
|
|
|
unzip,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "alt-tab-macos";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "6.71.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/lwouis/alt-tab-macos/releases/download/v${finalAttrs.version}/AltTab-${finalAttrs.version}.zip";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-46K9ePNqZyaV5Da6VRCT6PvG+Ad0vsuvs7sfNRUbKB4=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r *.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
meta = {
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Windows alt-tab on macOS";
|
|
|
|
homepage = "https://alt-tab-macos.netlify.app";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ donteatoreo emilytrau ];
|
2024-06-05 15:53:02 +00:00
|
|
|
platforms = lib.platforms.darwin;
|
2023-10-09 19:29:22 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
|
|
|
})
|