2020-05-15 21:57:56 +00:00
|
|
|
{ stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spacebar";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.1.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-08-20 17:08:02 +00:00
|
|
|
sha256 = "1x0wzm380nv81j26jqqg4y4dwanydnpdsca41ndw6xyj9zlv73f7";
|
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;
|
|
|
|
};
|
|
|
|
}
|