2023-06-29 17:47:31 -06:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchurl
|
2024-02-18 22:27:28 -07:00
|
|
|
, _7zz
|
2023-06-29 17:47:31 -06:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
|
|
pname = "bartender";
|
2024-10-16 11:30:31 -06:00
|
|
|
version = "5.2.3";
|
2023-06-29 17:47:31 -06:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-02-18 22:27:28 -07:00
|
|
|
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";
|
2024-10-16 11:30:31 -06:00
|
|
|
hash = "sha256-G1XL6o5Rk/U5SsT/Q5vWaVSg0qerfzVizjFmudWAI3E=";
|
2023-06-29 17:47:31 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
dontPatch = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontFixup = true;
|
|
|
|
|
2024-02-18 22:27:28 -07:00
|
|
|
nativeBuildInputs = [ _7zz ];
|
2023-06-29 17:47:31 -06:00
|
|
|
|
2024-02-18 22:27:28 -07:00
|
|
|
sourceRoot = "Bartender ${lib.versions.major finalAttrs.version}.app";
|
2023-06-29 17:47:31 -06:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2024-02-18 22:27:28 -07:00
|
|
|
mkdir -p "$out/Applications/${finalAttrs.sourceRoot}"
|
|
|
|
cp -R . "$out/Applications/${finalAttrs.sourceRoot}"
|
2023-06-29 17:47:31 -06:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2024-05-18 14:13:39 -06:00
|
|
|
meta = {
|
2023-06-29 17:47:31 -06:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.macbartender.com";
|
2024-02-18 22:27:28 -07:00
|
|
|
changelog = "https://www.macbartender.com/Bartender${lib.versions.major finalAttrs.version}/release_notes/";
|
2024-05-18 14:13:39 -06:00
|
|
|
license = [ lib.licenses.unfree ];
|
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
2024-09-29 07:13:22 -06:00
|
|
|
maintainers = with lib.maintainers; [ stepbrobd DimitarNestorov ];
|
2023-06-29 17:47:31 -06:00
|
|
|
platforms = [ "aarch64-darwin" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
})
|