11 inherit (stdenv.hostPlatform) system;
15 "aarch64-darwin" = "arm64";
16 "x86_64-darwin" = "x86";
18 .${system} or (throw "Unsupported system: ${system}");
20 stdenv.mkDerivation (finalAttrs: {
24 src = fetchFromGitHub {
27 rev = "v${finalAttrs.version}";
28 hash = "sha256-0082rRSfIKJFTAzmJ65ItEdLSwjFks5ZkTlVZqaWKEw=";
35 makeFlags = [ target ];
41 cp ./bin/sketchybar $out/bin/sketchybar
46 passthru.updateScript = nix-update-script { };
48 nativeInstallCheckInputs = [ versionCheckHook ];
49 versionCheckProgramArg = "--version";
50 doInstallCheck = true;
53 description = "Highly customizable macOS status bar replacement";
54 homepage = "https://github.com/FelixKratz/SketchyBar";
55 license = lib.licenses.gpl3;
56 mainProgram = "sketchybar";
57 maintainers = with lib.maintainers; [
61 platforms = lib.platforms.darwin;