nixpkgs/pkgs/by-name/sp/spacebar/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
750 B
Nix
Raw Normal View History

2024-11-05 03:01:58 +00:00
{
lib,
stdenv,
fetchFromGitHub,
2024-11-05 03:02:55 +00:00
apple-sdk_12,
2024-11-05 03:01:58 +00:00
}:
2020-05-02 08:29:52 +00:00
stdenv.mkDerivation rec {
pname = "spacebar";
2022-04-20 14:45:14 +00:00
version = "1.4.0";
2020-05-02 08:29:52 +00:00
src = fetchFromGitHub {
owner = "cmacrae";
2020-05-02 08:29:52 +00:00
repo = pname;
rev = "v${version}";
2022-04-20 14:45:14 +00:00
sha256 = "sha256-4LiG43kPZtsm7SQ/28RaGMpYsDshCaGvc1mouPG3jFM=";
2020-05-02 08:29:52 +00:00
};
2024-11-05 03:01:58 +00:00
buildInputs = [
2024-11-05 03:02:55 +00:00
apple-sdk_12
2024-11-05 03:01:58 +00:00
];
2020-05-02 08:29:52 +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
'';
meta = with lib; {
description = "Minimal status bar for macOS";
homepage = "https://github.com/cmacrae/spacebar";
2020-05-02 08:29:52 +00:00
platforms = platforms.darwin;
maintainers = [ maintainers.cmacrae ];
license = licenses.mit;
};
}