mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-08-16 18:50:49 +03:00
gh-f: package as standalone command
This commit is contained in:
parent
118829801a
commit
fab46df763
@ -2,11 +2,24 @@
|
||||
, fetchFromGitHub
|
||||
, stdenvNoCC
|
||||
, makeWrapper
|
||||
, gh
|
||||
, fzf
|
||||
, coreutils
|
||||
, gawk
|
||||
, gnused
|
||||
, withBat ? false
|
||||
, bat
|
||||
}:
|
||||
|
||||
let
|
||||
binPath = lib.makeBinPath ([
|
||||
gh
|
||||
fzf
|
||||
coreutils
|
||||
gawk
|
||||
gnused
|
||||
]
|
||||
++ lib.optional withBat bat);
|
||||
in
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "gh-f";
|
||||
version = "1.1.5";
|
||||
@ -27,7 +40,7 @@ stdenvNoCC.mkDerivation rec {
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/gh-f" --prefix PATH : "${lib.makeBinPath [fzf bat coreutils]}"
|
||||
wrapProgram "$out/bin/gh-f" --prefix PATH : "${binPath}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user