nixpkgs-suyu/pkgs/os-specific/darwin/spacebar/default.nix

31 lines
791 B
Nix
Raw Normal View History

2021-03-27 13:15:35 +01:00
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa, ScriptingBridge, SkyLight }:
2020-05-02 10:29:52 +02:00
stdenv.mkDerivation rec {
pname = "spacebar";
2020-11-18 18:09:55 +01:00
version = "1.2.1";
2020-05-02 10:29:52 +02:00
src = fetchFromGitHub {
owner = "cmacrae";
2020-05-02 10:29:52 +02:00
repo = pname;
rev = "v${version}";
2020-11-18 18:09:55 +01:00
sha256 = "0f5ddn3sx13rwwh0nfl784160s8ml3m5593d5fz2b1996aznzrsx";
2020-05-02 10:29:52 +02:00
};
2021-03-27 13:15:35 +01:00
buildInputs = [ Carbon Cocoa ScriptingBridge SkyLight ];
2020-05-02 10:29:52 +02: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
'';
meta = with lib; {
description = "A minimal status bar for macOS";
homepage = "https://github.com/cmacrae/spacebar";
2020-05-02 10:29:52 +02:00
platforms = platforms.darwin;
maintainers = [ maintainers.cmacrae ];
license = licenses.mit;
};
}