10 stdenvNoCC.mkDerivation rec {
15 url = "https://github.com/swiftbar/SwiftBar/releases/download/v${version}/SwiftBar.v${version}.b${build}.zip";
16 hash = "sha256-eippK01Q+J9jdwvnGcnr7nw3KwyQQqh051lHN3Xmy+c=";
23 nativeBuildInputs = [ makeWrapper ];
28 mkdir -p $out/{Applications,bin}
29 cp -r ./SwiftBar.app $out/Applications
31 # Symlinking doesnt work; The auto-updater will fail to start which renders the app useless
32 makeWrapper $out/Applications/SwiftBar.app/Contents/MacOS/SwiftBar $out/bin/SwiftBar
38 description = "Powerful macOS menu bar customization tool";
39 homepage = "https://swiftbar.app";
40 changelog = "https://github.com/swiftbar/SwiftBar/releases/tag/v${version}";
41 mainProgram = "SwiftBar";
42 license = licenses.mit;
43 platforms = platforms.darwin;
44 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
45 maintainers = with maintainers; [ matteopacini ];