2023-01-20 10:41:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, DisplayServices, SkyLight }:
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
target = {
|
2022-06-16 17:23:12 +00:00
|
|
|
"aarch64-darwin" = "arm64";
|
2022-02-20 05:27:41 +00:00
|
|
|
"x86_64-darwin" = "x86";
|
|
|
|
}.${system} or (throw "Unsupported system: ${system}");
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sketchybar";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.13.2";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FelixKratz";
|
|
|
|
repo = "SketchyBar";
|
|
|
|
rev = "v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-EPpD1QuJXFFwWcs1gmhjf9zm6mkEM72Zr8NOAAgxI4I=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = [ Carbon Cocoa DisplayServices SkyLight ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
target
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2022-06-16 17:23:12 +00:00
|
|
|
cp ./bin/sketchybar $out/bin/sketchybar
|
2022-02-20 05:27:41 +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;
|
|
|
|
};
|
|
|
|
}
|