diff options
author | Aleksana <me@aleksana.moe> | 2024-04-03 23:38:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 23:38:37 +0800 |
commit | d16e3a6e06c5cdc735ca2ee1e9a08b1479f4a042 (patch) | |
tree | e742471085e657b9ee216a646ff1339426247088 /pkgs/by-name/gh | |
parent | 394a44ced3f7879d276a76791cce485e248494ee (diff) | |
parent | 1a1bfe0857813661d51eee402c88b5a4f0189c21 (diff) |
Merge pull request #299557 from loicreynier/gh-notify-init-at-unstable-2024-03-19
gh-notify: init at 0-unstable-2024-03-19
Diffstat (limited to 'pkgs/by-name/gh')
-rw-r--r-- | pkgs/by-name/gh/gh-notify/package.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/by-name/gh/gh-notify/package.nix b/pkgs/by-name/gh/gh-notify/package.nix new file mode 100644 index 0000000000000..e2690d383b1a6 --- /dev/null +++ b/pkgs/by-name/gh/gh-notify/package.nix @@ -0,0 +1,55 @@ +{ lib +, fetchFromGitHub +, stdenvNoCC +, makeWrapper +, gh +, gnugrep +, fzf +, python3 +, withDelta ? false +, delta +, withBat ? false +, bat +}: +let + binPath = lib.makeBinPath ([ + gh + gnugrep + fzf + python3 + ] + ++ lib.optional withBat bat + ++ lib.optional withDelta delta); +in +stdenvNoCC.mkDerivation { + pname = "gh-notify"; + version = "0-unstable-2024-03-19"; + + src = fetchFromGitHub { + owner = "meiji163"; + repo = "gh-notify"; + rev = "0d8fa377d79cfef0f66d2f03a5921a5e598e6807"; + hash = "sha256-Ao6gUtgW7enVlWBQhlQDc8ZW/gP90atc2F4rDNUnjj8="; + }; + + nativeBuildInputs = [ + makeWrapper + ]; + + installPhase = '' + install -D -m755 "gh-notify" "$out/bin/gh-notify" + ''; + + postFixup = '' + wrapProgram "$out/bin/gh-notify" --prefix PATH : "${binPath}" + ''; + + meta = with lib; { + homepage = "https://github.com/meiji163/gh-notify"; + description = "GitHub CLI extension to display GitHub notifications"; + maintainers = with maintainers; [ loicreynier ]; + license = licenses.unlicense; + mainProgram = "gh-notify"; + platforms = platforms.all; + }; +} |