forked from mirrors/nixpkgs
Merge pull request #194681 from Enzime/add/rectangle
rectangle: init at 0.59
This commit is contained in:
commit
27a89ba43b
30
pkgs/os-specific/darwin/rectangle/default.nix
Normal file
30
pkgs/os-specific/darwin/rectangle/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue