mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
38 lines
866 B
Nix
38 lines
866 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
unzip,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "hidden-bar";
|
|
version = "1.10";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/dwarvesf/hidden/releases/download/v${version}/Hidden-Bar-v${version}-macos.zip";
|
|
hash = "sha256-qKX1KZ/fq1K9/7L1cop21MumkHVOmzsS8nvTjy52wLw=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/Applications
|
|
mv "Hidden Bar.app" $out/Applications
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
meta = {
|
|
description = "Ultra-light MacOS utility that helps hide menu bar icons";
|
|
homepage = "https://github.com/dwarvesf/hidden";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ _4evy ];
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|