swiftbar: init at 1.4.3
This commit is contained in:
parent
73305cc3d4
commit
cfc7e6ddc3
2 changed files with 48 additions and 0 deletions
46
pkgs/os-specific/darwin/swiftbar/default.nix
Normal file
46
pkgs/os-specific/darwin/swiftbar/default.nix
Normal file
|
@ -0,0 +1,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; [ ivar ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -11269,6 +11269,8 @@ with pkgs;
|
||||||
|
|
||||||
swaks = callPackage ../tools/networking/swaks { };
|
swaks = callPackage ../tools/networking/swaks { };
|
||||||
|
|
||||||
|
swiftbar = callPackage ../os-specific/darwin/swiftbar { };
|
||||||
|
|
||||||
swiften = callPackage ../development/libraries/swiften { };
|
swiften = callPackage ../development/libraries/swiften { };
|
||||||
|
|
||||||
squeekboard = callPackage ../applications/accessibility/squeekboard { };
|
squeekboard = callPackage ../applications/accessibility/squeekboard { };
|
||||||
|
|
Loading…
Reference in a new issue