2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, SkyLight }:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spacebar";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.4.0";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-18 16:06:22 +00:00
|
|
|
owner = "cmacrae";
|
2020-05-15 21:57:56 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-4LiG43kPZtsm7SQ/28RaGMpYsDshCaGvc1mouPG3jFM=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ Carbon Cocoa ScriptingBridge SkyLight ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1/
|
|
|
|
cp ./bin/spacebar $out/bin/spacebar
|
|
|
|
cp ./doc/spacebar.1 $out/share/man/man1/spacebar.1
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Minimal status bar for macOS";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/cmacrae/spacebar";
|
2020-05-15 21:57:56 +00:00
|
|
|
platforms = platforms.darwin;
|
|
|
|
maintainers = [ maintainers.cmacrae ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|