about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorEmily Trau <emily@downunderctf.com>2023-07-07 22:04:40 +1000
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-09-20 22:43:20 +0200
commit4b8e8171345893f0b2d80511f8b95d665caa6856 (patch)
tree8865fe730b9ff411fc972fd43d9ab31a19bb4b35 /pkgs/by-name
parentdb530516a61973ad6f61579390806bf3c867fb5d (diff)
rectangle-pro: init at 3.0.9
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/re/rectangle-pro/package.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/re/rectangle-pro/package.nix b/pkgs/by-name/re/rectangle-pro/package.nix
new file mode 100644
index 0000000000000..26b39da655eee
--- /dev/null
+++ b/pkgs/by-name/re/rectangle-pro/package.nix
@@ -0,0 +1,37 @@
+{ lib
+, stdenvNoCC
+, fetchurl
+, undmg
+}:
+
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "rectangle-pro";
+  version = "3.0.9";
+
+  src = fetchurl {
+    url = "https://rectangleapp.com/pro/downloads/Rectangle%20Pro%20${finalAttrs.version}.dmg";
+    hash = "sha256-wD8yi2Pbgrn1fW/xrocepDcpzSMsQH5yjB/Jv90PuGQ=";
+  };
+
+  sourceRoot = ".";
+
+  nativeBuildInputs = [ undmg ];
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/Applications
+    cp -r *.app $out/Applications
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
+    homepage = "https://rectangleapp.com/pro";
+    license = licenses.unfree;
+    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
+    maintainers = with maintainers; [ emilytrau Enzime ];
+    platforms = platforms.darwin;
+  };
+})