gh-f: init at 1.1.5

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
This commit is contained in:
Loïc Reynier 2024-04-02 14:02:54 +00:00
parent 9806daf34c
commit b4f96d2b98
No known key found for this signature in database
GPG Key ID: 6213A7D3F83C856A

View File

@ -0,0 +1,41 @@
{ lib
, fetchFromGitHub
, stdenvNoCC
, makeWrapper
, fzf
, coreutils
, bat
}:
stdenvNoCC.mkDerivation rec {
pname = "gh-f";
version = "1.1.5";
src = fetchFromGitHub {
owner = "gennaro-tedesco";
repo = "gh-f";
rev = "v${version}";
hash = "sha256-ITl8T8Oe21m047ygFlxWVjzUYPG4rlcTjfSpsropYJw=";
};
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
install -D -m755 "gh-f" "$out/bin/gh-f"
'';
postFixup = ''
wrapProgram "$out/bin/gh-f" --prefix PATH : "${lib.makeBinPath [fzf bat coreutils]}"
'';
meta = with lib; {
homepage = "https://github.com/gennaro-tedesco/gh-f";
description = "GitHub CLI ultimate FZF extension";
maintainers = with maintainers; [ loicreynier ];
license = licenses.unlicense;
mainProgram = "gh-f";
platforms = platforms.all;
};
}