about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorStepBroBD <Hi@StepBroBD.com>2023-06-29 17:47:31 -0600
committerStepBroBD <Hi@StepBroBD.com>2023-06-30 10:12:47 -0600
commit6482536377fbe0013fb52abd44377bf4d28efcbd (patch)
tree2a2dcf4f922904c1e1977a68fafe1ff0b6fa2492 /pkgs/os-specific
parentb1434f14da608b9e19f56fe9cad6ee0b0d81c1cf (diff)
bartender: init at 4.2.21
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/darwin/bartender/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/bartender/default.nix b/pkgs/os-specific/darwin/bartender/default.nix
new file mode 100644
index 0000000000000..4aca240cba163
--- /dev/null
+++ b/pkgs/os-specific/darwin/bartender/default.nix
@@ -0,0 +1,48 @@
+{ lib
+, stdenvNoCC
+, fetchurl
+, undmg
+}:
+
+stdenvNoCC.mkDerivation (finalAttrs: {
+  pname = "bartender";
+  version = "4.2.21";
+
+  src = fetchurl {
+    name = "Bartender 4.dmg";
+    url = "https://www.macbartender.com/B2/updates/${builtins.replaceStrings [ "." ] [ "-" ] finalAttrs.version}/Bartender%204.dmg";
+    hash = "sha256-KL4Wy8adGiYmxaDkhGJjwobU5szpW2j7ObgHyp02Dow=";
+  };
+
+  dontPatch = true;
+  dontConfigure = true;
+  dontBuild = true;
+  dontFixup = true;
+
+  nativeBuildInputs = [ undmg ];
+
+  sourceRoot = "Bartender 4.app";
+
+  installPhase = ''
+    runHook preInstall
+
+    mkdir -p $out/Applications/Bartender\ 4.app
+    cp -R . $out/Applications/Bartender\ 4.app
+
+    runHook postInstall
+  '';
+
+  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.
+    '';
+    homepage = "https://www.macbartender.com";
+    changelog = "https://www.macbartender.com/Bartender4/release_notes";
+    license = with licenses; [ unfree ];
+    sourceProvenance = with sourceTypes; [ binaryNativeCode ];
+    maintainers = with maintainers; [ stepbrobd ];
+    platforms = [ "aarch64-darwin" "x86_64-darwin" ];
+  };
+})