From 78e5e62b97b0079a674ad289cbcb60f588f40e1b Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:02:45 +0300 Subject: ice-bar: init at 0.9.0 (#317971) Co-authored-by: Sandro --- pkgs/by-name/ic/ice-bar/package.nix | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/ic/ice-bar/package.nix diff --git a/pkgs/by-name/ic/ice-bar/package.nix b/pkgs/by-name/ic/ice-bar/package.nix new file mode 100644 index 0000000000000..95b1170f2a859 --- /dev/null +++ b/pkgs/by-name/ic/ice-bar/package.nix @@ -0,0 +1,41 @@ +{ + lib, + stdenvNoCC, + unzip, + fetchurl, + nix-update-script, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "ice-bar"; + version = "0.9.0"; + + src = fetchurl { + url = "https://github.com/jordanbaird/Ice/releases/download/${finalAttrs.version}/Ice.zip"; + hash = "sha256-MvkJRP8Stz9VIK3vBnWezVKq2KkPfUa/NUBxJtYzHhU="; + }; + + sourceRoot = "."; + + nativeBuildInputs = [ unzip ]; + + installPhase = '' + runHook preInstall + + mkdir -p "$out/Applications" + cp -r *.app "$out/Applications" + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Powerful menu bar manager for macOS"; + homepage = "https://icemenubar.app/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ donteatoreo ]; + platforms = lib.platforms.darwin; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +}) -- cgit 1.4.1