mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 22:33:43 +00:00
rectangle: refactor
This commit is contained in:
parent
5608f9dbad
commit
b344f6cee0
@ -1,6 +1,11 @@
|
||||
{ lib, stdenv, fetchurl, cpio, xar, undmg, ... }:
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, undmg
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "rectangle";
|
||||
version = "0.67";
|
||||
|
||||
@ -9,15 +14,24 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-tvxGDfpHu86tZt7M055ehEG/lDdmdPmZwrDc2F/yUjk=";
|
||||
};
|
||||
|
||||
sourceRoot = "Rectangle.app";
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ undmg ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/Applications/Rectangle.app
|
||||
cp -R . $out/Applications/Rectangle.app
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/Applications
|
||||
mv Rectangle.app $out/Applications
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://github.com/rxhanson/Rectangle";
|
||||
rev-prefix = "v";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
|
||||
homepage = "https://rectangleapp.com/";
|
||||
|
Loading…
Reference in New Issue
Block a user