0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
40 lines
956 B
Nix
40 lines
956 B
Nix
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, DisplayServices, SkyLight }:
|
|
|
|
let
|
|
inherit (stdenv.hostPlatform) system;
|
|
target = {
|
|
"aarch64-darwin" = "arm64";
|
|
"x86_64-darwin" = "x86";
|
|
}.${system} or (throw "Unsupported system: ${system}");
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sketchybar";
|
|
version = "2.13.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FelixKratz";
|
|
repo = "SketchyBar";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-EPpD1QuJXFFwWcs1gmhjf9zm6mkEM72Zr8NOAAgxI4I=";
|
|
};
|
|
|
|
buildInputs = [ Carbon Cocoa DisplayServices SkyLight ];
|
|
|
|
makeFlags = [
|
|
target
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ./bin/sketchybar $out/bin/sketchybar
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|