Merge pull request #301263 from loicreynier/gh-f-make-standalone
gh-f: package as standalone command
This commit is contained in:
commit
67e2bc0371
@ -2,11 +2,24 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, stdenvNoCC
|
, stdenvNoCC
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
|
, gh
|
||||||
, fzf
|
, fzf
|
||||||
, coreutils
|
, coreutils
|
||||||
|
, gawk
|
||||||
|
, gnused
|
||||||
|
, withBat ? false
|
||||||
, bat
|
, bat
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
binPath = lib.makeBinPath ([
|
||||||
|
gh
|
||||||
|
fzf
|
||||||
|
coreutils
|
||||||
|
gawk
|
||||||
|
gnused
|
||||||
|
]
|
||||||
|
++ lib.optional withBat bat);
|
||||||
|
in
|
||||||
stdenvNoCC.mkDerivation rec {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "gh-f";
|
pname = "gh-f";
|
||||||
version = "1.1.5";
|
version = "1.1.5";
|
||||||
@ -27,7 +40,7 @@ stdenvNoCC.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
wrapProgram "$out/bin/gh-f" --prefix PATH : "${lib.makeBinPath [fzf bat coreutils]}"
|
wrapProgram "$out/bin/gh-f" --prefix PATH : "${binPath}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user