preload: init at 0.6.4
[NixPkgs.git] / pkgs / by-name / re / rectangle-pro / package.nix
blob710ec7121c980057ec81b8f358e97a446f807453
1 { lib
2 , stdenvNoCC
3 , fetchurl
4 , undmg
5 }:
7 stdenvNoCC.mkDerivation (finalAttrs: {
8   pname = "rectangle-pro";
9   version = "3.0.11";
11   src = fetchurl {
12     url = "https://rectangleapp.com/pro/downloads/Rectangle%20Pro%20${finalAttrs.version}.dmg";
13     hash = "sha256-Hs2eRO5DpYoY0rLfcmGZRHjmg+wddz/+LE0u4E9gCTk=";
14   };
16   sourceRoot = ".";
18   nativeBuildInputs = [ undmg ];
20   installPhase = ''
21     runHook preInstall
23     mkdir -p $out/Applications
24     cp -r *.app $out/Applications
26     runHook postInstall
27   '';
29   meta = with lib; {
30     description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
31     homepage = "https://rectangleapp.com/pro";
32     license = licenses.unfree;
33     sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
34     maintainers = with maintainers; [ emilytrau Enzime ];
35     platforms = platforms.darwin;
36   };