nixpkgs/pkgs/os-specific/darwin/rectangle/default.nix

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

45 lines
1001 B
Nix
Raw Normal View History

2023-04-19 13:50:16 +00:00
{ lib
, stdenvNoCC
, fetchurl
, undmg
, gitUpdater
}:
2022-10-06 01:03:27 +00:00
2023-04-19 13:50:16 +00:00
stdenvNoCC.mkDerivation rec {
2022-10-06 01:03:27 +00:00
pname = "rectangle";
2024-02-21 22:24:53 +00:00
version = "0.76";
2022-10-06 01:03:27 +00:00
src = fetchurl {
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
2024-02-21 22:24:53 +00:00
hash = "sha256-oHq5mLMWloi6Tf81rjcmUFGwIggtMdyLPqbD/gOzNHU=";
2022-10-06 01:03:27 +00:00
};
2023-04-19 13:50:16 +00:00
sourceRoot = ".";
2022-10-06 01:03:27 +00:00
nativeBuildInputs = [ undmg ];
installPhase = ''
2023-04-19 13:50:16 +00:00
runHook preInstall
mkdir -p $out/Applications
mv Rectangle.app $out/Applications
runHook postInstall
2022-10-06 01:03:27 +00:00
'';
2023-04-19 13:50:16 +00:00
passthru.updateScript = gitUpdater {
url = "https://github.com/rxhanson/Rectangle";
rev-prefix = "v";
};
2022-10-06 01:03:27 +00:00
meta = with lib; {
description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
homepage = "https://rectangleapp.com/";
2022-10-06 11:09:25 +00:00
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2022-10-06 01:03:27 +00:00
platforms = platforms.darwin;
2023-09-18 12:27:39 +00:00
maintainers = with maintainers; [ Enzime Intuinewin wegank ];
2022-10-06 01:03:27 +00:00
license = licenses.mit;
};
}