blob: e9c45b7f9e077bdd009867993bac7c33d1dbee9e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ lib
, fetchzip
, stdenvNoCC
, makeWrapper
}:
stdenvNoCC.mkDerivation rec {
pname = "swiftbar";
version = "1.4.3";
src = fetchzip {
url = "https://github.com/swiftbar/SwiftBar/releases/download/v${version}/SwiftBar.zip";
sha256 = "sha256-Ut+lr1E7bMp8Uz1aL7EV0ZsfdTh9t7zUjDU/DScRpHY=";
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 = with lib; {
description = "Powerful macOS menu bar customization tool";
homepage = "https://swiftbar.app";
changelog = "https://github.com/swiftbar/SwiftBar/releases/tag/v${version}";
mainProgram = "SwiftBar";
license = licenses.mit;
platforms = platforms.darwin;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
maintainers = with maintainers; [ ];
};
}
|