3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #194681 from Enzime/add/rectangle

rectangle: init at 0.59
This commit is contained in:
Thiago Kenji Okada 2022-10-06 12:36:05 +01:00 committed by GitHub
commit 27a89ba43b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{ 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/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = platforms.darwin;
maintainers = with maintainers; [ Enzime ];
license = licenses.mit;
};
}

View file

@ -25196,6 +25196,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 { };