mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
31 lines
841 B
Nix
31 lines
841 B
Nix
{ lib, stdenv, fetchurl, cpio, xar, undmg, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rectangle";
|
|
version = "0.59";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
|
|
sha256 = "sha256-6K4HJ4qWjf/BsoxmSWyO/Km3BZujCnMJ2/xCMkH3TaI=";
|
|
};
|
|
|
|
sourceRoot = "Rectangle.app";
|
|
|
|
nativeBuildInputs = [ undmg ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/Applications/Rectangle.app
|
|
cp -R . $out/Applications/Rectangle.app
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
|
|
homepage = "https://rectangleapp.com/";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
platforms = platforms.darwin;
|
|
maintainers = with maintainers; [ Enzime ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|
|
|