rectangle: init at 0.59

This commit is contained in:
Michael Hoang 2022-10-06 12:03:27 +11:00
parent 8911c2dec8
commit 151446151e
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ lib, stdenv, fetchurl, cpio, xar, undmg, ... }:
stdenv.mkDerivation rec {
pname = "rectangle";
version = "0.59";
src = fetchurl {
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
sha256 = "sha256-6K4HJ4qWjf/BsoxmSWyO/Km3BZujCnMJ2/xCMkH3TaI=";
};
sourceRoot = "Rectangle.app";
nativeBuildInputs = [ undmg ];
installPhase = ''
mkdir -p $out/Applications/Rectangle.app
cp -R . $out/Applications/Rectangle.app
'';
meta = with lib; {
description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
homepage = "https://rectangleapp.com/";
platforms = platforms.darwin;
maintainers = with maintainers; [ Enzime ];
license = licenses.mit;
};
}

View file

@ -25187,6 +25187,8 @@ with pkgs;
reap = callPackage ../os-specific/linux/reap { };
rectangle = callPackage ../os-specific/darwin/rectangle { };
regionset = callPackage ../os-specific/linux/regionset { };
rfkill_udev = callPackage ../os-specific/linux/rfkill/udev.nix { };