diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2022-10-06 12:36:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 12:36:05 +0100 |
commit | 27a89ba43b0fb735ce867e8ab3d2442f8cc61dad (patch) | |
tree | 440ed06e18b0a08776e107a510295ba319aae65a /pkgs/os-specific | |
parent | c98c903229df94149b73b3bb10b9e54806245028 (diff) | |
parent | 678fff8616745c5054c801cd83a59584cd224470 (diff) |
Merge pull request #194681 from Enzime/add/rectangle
rectangle: init at 0.59
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/darwin/rectangle/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/rectangle/default.nix b/pkgs/os-specific/darwin/rectangle/default.nix new file mode 100644 index 0000000000000..8261c4198c1cc --- /dev/null +++ b/pkgs/os-specific/darwin/rectangle/default.nix @@ -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; + }; +} + |