nixpkgs/pkgs/by-name/re/rectangle-pro/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
866 B
Nix
Raw Normal View History

2023-07-07 14:04:40 +02:00
{ lib
, stdenvNoCC
, fetchurl
, undmg
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "rectangle-pro";
2024-03-04 20:29:52 +01:00
version = "3.0.19";
2023-07-07 14:04:40 +02:00
src = fetchurl {
url = "https://rectangleapp.com/pro/downloads/Rectangle%20Pro%20${finalAttrs.version}.dmg";
2024-03-04 20:29:52 +01:00
hash = "sha256-ZWIjxaxV90I42Stg7jFUItJBZLoXm8iLIeQzcssRQLA=";
2023-07-07 14:04:40 +02:00
};
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 ];
2024-07-09 06:21:18 +02:00
maintainers = with maintainers; [ emilytrau ];
2023-07-07 14:04:40 +02:00
platforms = platforms.darwin;
};
})