2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchurl,
|
|
|
|
undmg,
|
|
|
|
gitUpdater,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
2022-10-06 18:32:54 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2022-10-06 18:32:54 +00:00
|
|
|
pname = "rectangle";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "0.84";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
|
2024-10-29 11:11:06 +00:00
|
|
|
hash = "sha256-W09un/7gkKvYUQZtkZMJLeuZHpbQLfvfYm20NSK4oBg=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
sourceRoot = ".";
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-04-29 16:46:19 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv Rectangle.app $out/Applications
|
|
|
|
|
|
|
|
runHook postInstall
|
2022-10-06 18:32:54 +00:00
|
|
|
'';
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://github.com/rxhanson/Rectangle";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
|
|
|
|
homepage = "https://rectangleapp.com/";
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
platforms = platforms.darwin;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
Intuinewin
|
|
|
|
wegank
|
|
|
|
];
|
2022-10-06 18:32:54 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|