2020-05-15 21:57:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spacebar";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "1.2.1";
|
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}";
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "0f5ddn3sx13rwwh0nfl784160s8ml3m5593d5fz2b1996aznzrsx";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ Carbon Cocoa ScriptingBridge ];
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "A minimal status bar for macOS";
|
|
|
|
homepage = "https://github.com/cmacrae/spacebar";
|
2020-05-15 21:57:56 +00:00
|
|
|
platforms = platforms.darwin;
|
|
|
|
maintainers = [ maintainers.cmacrae ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|