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.

31 lines
839 B
Nix
Raw Normal View History

2022-10-06 01:03:27 +00:00
{ lib, stdenv, fetchurl, cpio, xar, undmg, ... }:
stdenv.mkDerivation rec {
pname = "rectangle";
2023-03-08 08:30:57 +00:00
version = "0.67";
2022-10-06 01:03:27 +00:00
src = fetchurl {
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
2023-03-08 08:30:57 +00:00
hash = "sha256-tvxGDfpHu86tZt7M055ehEG/lDdmdPmZwrDc2F/yUjk=";
2022-10-06 01:03:27 +00:00
};
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/";
2022-10-06 11:09:25 +00:00
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2022-10-06 01:03:27 +00:00
platforms = platforms.darwin;
maintainers = with maintainers; [ Enzime ];
license = licenses.mit;
};
}