mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
41 lines
954 B
Nix
41 lines
954 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.14.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "FelixKratz";
|
|
repo = "SketchyBar";
|
|
rev = "v${version}";
|
|
hash = "sha256-TTpOFupLyCko5+EZJ3kJWu6OD35qfLpM8N7zq+eMvMM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|