commit 72f2e95f9276c254c5254724fa39e283f793d30b
parent eabb54f2398b9a15cc49b9333532efa69ef72306
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 13:37:35 +0200
parent eabb54f2398b9a15cc49b9333532efa69ef72306
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 7 May 2022 13:37:35 +0200
pkgs/macApps: add Rectangle
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/pkgs/macApps/Rectangle.nix b/pkgs/macApps/Rectangle.nix @@ -0,0 +1,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; +# }; +}