Skip to content

Commit

Permalink
rectangle: init at 0.59
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzime committed Oct 6, 2022
1 parent 8911c2d commit 1514461
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/os-specific/darwin/rectangle/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 1514461

Please sign in to comment.