3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #158754 from azuwis/sketchybar

This commit is contained in:
Sandro 2022-02-17 13:41:24 +01:00 committed by GitHub
commit a98197288c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 0 deletions

View file

@ -1200,6 +1200,12 @@
githubId = 262763;
name = "Ayaz Hafiz";
};
azuwis = {
email = "azuwis@gmail.com";
github = "azuwis";
githubId = 9315;
name = "Zhong Jianxin";
};
b4dm4n = {
email = "fabianm88@gmail.com";
github = "B4dM4n";

View file

@ -0,0 +1,44 @@
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, SkyLight }:
let
inherit (stdenv.hostPlatform) system;
target = {
"aarch64-darwin" = "arm";
"x86_64-darwin" = "x86";
}.${system} or (throw "Unsupported system: ${system}");
in
stdenv.mkDerivation rec {
pname = "sketchybar";
version = "2.4.3";
src = fetchFromGitHub {
owner = "FelixKratz";
repo = "SketchyBar";
rev = "v${version}";
sha256 = "1370xjl8sas5nghxgjxmc1zgskf28g40pv7nxgh37scjwdrkrrvb";
};
buildInputs = [ Carbon Cocoa SkyLight ];
postPatch = ''
sed -i -e '/^#include <malloc\/_malloc.h>/d' src/*.[ch] src/*/*.[ch]
'';
makeFlags = [
target
];
installPhase = ''
mkdir -p $out/bin
cp ./bin/sketchybar_${target} $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;
};
}

View file

@ -9755,6 +9755,10 @@ with pkgs;
sixpair = callPackage ../tools/misc/sixpair {};
sketchybar = callPackage ../os-specific/darwin/sketchybar {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa SkyLight;
};
skippy-xd = callPackage ../tools/X11/skippy-xd {};
sks = callPackage ../servers/sks { };