-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treewide: refactor to use darwin.installBinaryPackage (bartender)
- Loading branch information
Showing
3 changed files
with
13 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,31 @@ | ||
{ lib | ||
, stdenvNoCC | ||
, fetchurl | ||
, _7zz | ||
, darwin | ||
}: | ||
|
||
stdenvNoCC.mkDerivation (finalAttrs: { | ||
darwin.installBinaryPackage rec { | ||
pname = "bartender"; | ||
version = "5.0.49"; | ||
|
||
src = fetchurl { | ||
name = "Bartender ${lib.versions.major finalAttrs.version}.dmg"; | ||
url = "https://www.macbartender.com/B2/updates/${builtins.replaceStrings [ "." ] [ "-" ] finalAttrs.version}/Bartender%20${lib.versions.major finalAttrs.version}.dmg"; | ||
url = "https://www.macbartender.com/B2/updates/${builtins.replaceStrings [ "." ] [ "-" ] version}/Bartender%20${lib.versions.major version}.dmg"; | ||
hash = "sha256-DOQLtdbwYFyRri3GBdjLfFNII65QJMvAQu9Be4ATBx0="; | ||
}; | ||
|
||
dontPatch = true; | ||
dontConfigure = true; | ||
dontBuild = true; | ||
dontFixup = true; | ||
|
||
nativeBuildInputs = [ _7zz ]; | ||
|
||
sourceRoot = "Bartender ${lib.versions.major finalAttrs.version}.app"; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p "$out/Applications/${finalAttrs.sourceRoot}" | ||
cp -R . "$out/Applications/${finalAttrs.sourceRoot}" | ||
runHook postInstall | ||
''; | ||
appName = "Bartender ${lib.versions.major version}.app"; | ||
|
||
meta = with lib; { | ||
description = "Take control of your menu bar"; | ||
longDescription = '' | ||
Bartender is an award-winning app for macOS that superpowers your menu bar, giving you total control over your menu bar items, what's displayed, and when, with menu bar items only showing when you need them. | ||
Bartender improves your workflow with quick reveal, search, custom hotkeys and triggers, and lots more. | ||
Bartender is an award-winning app for macOS that superpowers your menu | ||
bar, giving you total control over your menu bar items, what's displayed, | ||
and when, with menu bar items only showing when you need them. | ||
Bartender improves your workflow with quick reveal, search, custom | ||
hotkeys and triggers, and lots more. | ||
''; | ||
homepage = "https://www.macbartender.com"; | ||
changelog = "https://www.macbartender.com/Bartender${lib.versions.major finalAttrs.version}/release_notes/"; | ||
changelog = "https://www.macbartender.com/Bartender${lib.versions.major version}/release_notes/"; | ||
license = with licenses; [ unfree ]; | ||
sourceProvenance = with sourceTypes; [ binaryNativeCode ]; | ||
maintainers = with maintainers; [ stepbrobd ]; | ||
platforms = [ "aarch64-darwin" "x86_64-darwin" ]; | ||
}; | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters