about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-10-06 12:02:07 +0000
committerGitHub <noreply@github.com>2022-10-06 12:02:07 +0000
commit7dc2d52e3b1dd885722f157f799ac4b6cee63a10 (patch)
tree18d23e4b65d6fab421070ae523d04a602a650baf /pkgs/os-specific
parent75ffef8f2e49dc61ec664f5474f1023964ef52d1 (diff)
parent8d6fbd734139962d00ca730417a2532f77e150f2 (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/darwin/rectangle/default.nix30
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;
+  };
+}
+