c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
44 lines
994 B
Nix
44 lines
994 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchurl
|
|
, undmg
|
|
, gitUpdater
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "rectangle";
|
|
version = "0.70";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
|
|
hash = "sha256-YJYDzmFfLlXDupyEjoEAin5qynyLjXjuav1DSS/Q5zU=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
mv Rectangle.app $out/Applications
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "https://github.com/rxhanson/Rectangle";
|
|
rev-prefix = "v";
|
|
};
|
|
|
|
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;
|
|
maintainers = with maintainers; [ Enzime Intuinewin ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|
|
|