diff --git a/pkgs/os-specific/darwin/rectangle/default.nix b/pkgs/os-specific/darwin/rectangle/default.nix new file mode 100644 index 000000000000..832d1667ce37 --- /dev/null +++ b/pkgs/os-specific/darwin/rectangle/default.nix @@ -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; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9cfdc1f70e02..a0000bbed0f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };