depot/third_party/nixpkgs/pkgs/os-specific/darwin/sketchybar/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

59 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, Carbon
, Cocoa
, CoreWLAN
, DisplayServices
, MediaRemote
, SkyLight
}:
let
inherit (stdenv.hostPlatform) system;
target = {
"aarch64-darwin" = "arm64";
"x86_64-darwin" = "x86";
}.${system} or (throw "Unsupported system: ${system}");
in
stdenv.mkDerivation (finalAttrs: {
pname = "sketchybar";
version = "2.15.2";
src = fetchFromGitHub {
owner = "FelixKratz";
repo = "SketchyBar";
rev = "v${finalAttrs.version}";
hash = "sha256-13wc+1IgplB+L0j1AbBr/MUjEo4W38ZgJwrAhbdOroE=";
};
buildInputs = [
Carbon
Cocoa
CoreWLAN
DisplayServices
MediaRemote
SkyLight
];
makeFlags = [
target
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ./bin/sketchybar $out/bin/sketchybar
runHook postInstall
'';
meta = {
description = "A highly customizable macOS status bar replacement";
homepage = "https://github.com/FelixKratz/SketchyBar";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ azuwis khaneliman ];
platforms = lib.platforms.darwin;
};
})