mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 02:37:54 +00:00
rectangle-pro: refactor, 3.0.19 -> 3.0.37 (#357245)
* rectangle-pro: format with `nixfmt-rfc-style` * rectangle-pro: quote paths * rectangle-pro: refactor meta * rectangle-pro: 3.0.19 -> 3.0.37
This commit is contained in:
parent
6a1fd258c3
commit
df6a051870
@ -1,16 +1,17 @@
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchurl
|
||||
, undmg
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
undmg,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "rectangle-pro";
|
||||
version = "3.0.19";
|
||||
version = "3.0.37";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://rectangleapp.com/pro/downloads/Rectangle%20Pro%20${finalAttrs.version}.dmg";
|
||||
hash = "sha256-ZWIjxaxV90I42Stg7jFUItJBZLoXm8iLIeQzcssRQLA=";
|
||||
hash = "sha256-1/guAVppL6AwC9luqPZZscz38U4irN1vyGesN8q2leM=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
@ -20,18 +21,19 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/Applications
|
||||
cp -r *.app $out/Applications
|
||||
mkdir -p "$out/Applications"
|
||||
cp -r *.app "$out/Applications"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
changelog = "https://rectangleapp.com/pro/versions";
|
||||
description = "Move and resize windows in macOS using keyboard shortcuts or snap areas";
|
||||
homepage = "https://rectangleapp.com/pro";
|
||||
license = licenses.unfree;
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = with lib.maintainers; [ emilytrau ];
|
||||
platforms = lib.platforms.darwin;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
maintainers = with maintainers; [ emilytrau ];
|
||||
platforms = platforms.darwin;
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user