diff options
author | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-04-06 15:38:55 +0300 |
---|---|---|
committer | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-04-06 15:38:55 +0300 |
commit | 5f2048626a09de48b99e822056fe97d5044a551a (patch) | |
tree | a4bf6b5326980db5be34b966bdc01668ce818f00 /pkgs/by-name/hi | |
parent | 7a4d4a55fc7f83054f7bf153cdc3297d36937abb (diff) |
hidden-bar: init at 1.9
Diffstat (limited to 'pkgs/by-name/hi')
-rw-r--r-- | pkgs/by-name/hi/hidden-bar/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/hi/hidden-bar/package.nix b/pkgs/by-name/hi/hidden-bar/package.nix new file mode 100644 index 0000000000000..162b5a923f3c3 --- /dev/null +++ b/pkgs/by-name/hi/hidden-bar/package.nix @@ -0,0 +1,37 @@ +{ lib +, stdenvNoCC +, fetchurl +, undmg +}: + +stdenvNoCC.mkDerivation rec { + pname = "hidden-bar"; + version = "1.9"; + + src = fetchurl { + url = "https://github.com/dwarvesf/hidden/releases/download/v${version}/Hidden.Bar.${version}.dmg"; + hash = "sha256-P1SwJPXBxAvBiuvjkBRxAom0fhR+cVYfriKmYcqybQI="; + }; + + sourceRoot = "."; + + installPhase = '' + runHook preInstall + + mkdir -p $out/Applications + mv "Hidden Bar.app" $out/Applications + + runHook postInstall + ''; + + nativeBuildInputs = [ undmg ]; + + meta = { + description = "An ultra-light MacOS utility that helps hide menu bar icons"; + homepage = "https://github.com/dwarvesf/hidden"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ donteatoreo ]; + platforms = lib.platforms.darwin; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +} |