Merge pull request #299555 from loicreynier/gh-f-init-at-1.1.5
gh-f: init at 1.1.5
This commit is contained in:
commit
607fc64bee
1 changed files with 41 additions and 0 deletions
41
pkgs/by-name/gh/gh-f/package.nix
Normal file
41
pkgs/by-name/gh/gh-f/package.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue