nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 935 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchurl, 5 undmg, 6}: 7 8stdenvNoCC.mkDerivation (finalAttrs: { 9 pname = "rectangle-pro"; 10 version = "3.0.37"; 11 12 src = fetchurl { 13 url = "https://rectangleapp.com/pro/downloads/Rectangle%20Pro%20${finalAttrs.version}.dmg"; 14 hash = "sha256-1/guAVppL6AwC9luqPZZscz38U4irN1vyGesN8q2leM="; 15 }; 16 17 sourceRoot = "."; 18 19 nativeBuildInputs = [ undmg ]; 20 21 installPhase = '' 22 runHook preInstall 23 24 mkdir -p "$out/Applications" 25 cp -r *.app "$out/Applications" 26 27 runHook postInstall 28 ''; 29 30 meta = { 31 changelog = "https://rectangleapp.com/pro/versions"; 32 description = "Move and resize windows in macOS using keyboard shortcuts or snap areas"; 33 homepage = "https://rectangleapp.com/pro"; 34 license = lib.licenses.unfree; 35 maintainers = with lib.maintainers; [ emilytrau ]; 36 platforms = lib.platforms.darwin; 37 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 38 }; 39})