2022-12-01 13:53:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, DisplayServices, SkyLight }:
|
2022-02-09 07:34:19 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
target = {
|
2022-05-16 16:10:54 +00:00
|
|
|
"aarch64-darwin" = "arm64";
|
2022-02-09 07:34:19 +00:00
|
|
|
"x86_64-darwin" = "x86";
|
|
|
|
}.${system} or (throw "Unsupported system: ${system}");
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sketchybar";
|
2023-02-23 14:56:59 +00:00
|
|
|
version = "2.14.1";
|
2022-02-09 07:34:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FelixKratz";
|
|
|
|
repo = "SketchyBar";
|
|
|
|
rev = "v${version}";
|
2023-02-23 14:56:59 +00:00
|
|
|
hash = "sha256-TTpOFupLyCko5+EZJ3kJWu6OD35qfLpM8N7zq+eMvMM=";
|
2022-02-09 07:34:19 +00:00
|
|
|
};
|
|
|
|
|
2022-12-01 13:53:45 +00:00
|
|
|
buildInputs = [ Carbon Cocoa DisplayServices SkyLight ];
|
2022-02-09 07:34:19 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
target
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2022-05-16 16:10:54 +00:00
|
|
|
cp ./bin/sketchybar $out/bin/sketchybar
|
2022-02-09 07:34:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A highly customizable macOS status bar replacement";
|
|
|
|
homepage = "https://github.com/FelixKratz/SketchyBar";
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
maintainers = [ maintainers.azuwis ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|