1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, undmg, ... }:
stdenv.mkDerivation rec {
pname = "Rectangle";
version = "0.53";
buildInputs = [ undmg ];
sourceRoot = ".";
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p "$out/Applications"
cp -r "Rectangle.app" "$out/Applications/Rectangle.app"
'';
src = fetchurl {
name = "Rectangle.${version}.dmg";
url = "https://github.com/rxhanson/Rectangle/releases/download/v${version}/Rectangle${version}.dmg";
sha256 = "0ws2p8vwa825qwi5gv4ppn8l4j77vg8wpk0aw05dp336016637km";
};
# meta = with stdenv.lib; {
# description = "Move and resize windows on macOS with keyboard shortcuts and snap areas";
# homepage = "https://github.com/rxhanson/Rectangle";
# platforms = platforms.darwin;
# };
}