Merge pull request #158754 from azuwis/sketchybar
This commit is contained in:
commit
a98197288c
@ -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";
|
||||
|
44
pkgs/os-specific/darwin/sketchybar/default.nix
Normal file
44
pkgs/os-specific/darwin/sketchybar/default.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user