Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchzip,
|
|
stdenvNoCC,
|
|
makeWrapper,
|
|
}:
|
|
let
|
|
build = "536";
|
|
in
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "swiftbar";
|
|
version = "2.0.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/swiftbar/SwiftBar/releases/download/v${finalAttrs.version}/SwiftBar.v${finalAttrs.version}.b${build}.zip";
|
|
hash = "sha256-K46XQvhLs8rnQ0psveL2dZ/+bTZnaeWVLtrUm29RQYU=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/{Applications,bin}
|
|
cp -r ./SwiftBar.app $out/Applications
|
|
|
|
# Symlinking doesnt work; The auto-updater will fail to start which renders the app useless
|
|
makeWrapper $out/Applications/SwiftBar.app/Contents/MacOS/SwiftBar $out/bin/SwiftBar
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Powerful macOS menu bar customization tool";
|
|
homepage = "https://swiftbar.app";
|
|
changelog = "https://github.com/swiftbar/SwiftBar/releases/tag/v${finalAttrs.version}";
|
|
mainProgram = "SwiftBar";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.darwin;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
maintainers = with lib.maintainers; [ matteopacini ];
|
|
};
|
|
})
|