gitflow: embed path to coreutils into the wrapper

gitflow is shell script and does not work without common tools (e.g readlink)
in PATH or with busybox instead of coreutils.

Busybox version of readlink does not support "-e" option. Probably it can be
replaced with "-f", but I didn't check.
This commit is contained in:
Dmitry Bogatov 2021-12-01 08:31:59 -04:00 committed by Bjørn Forsman
parent 660a7744c6
commit 1938cc6e55

View file

@ -22,7 +22,8 @@ stdenv.mkDerivation rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/git-flow \ wrapProgram $out/bin/git-flow \
--set FLAGS_GETOPT_CMD ${pkgs.getopt}/bin/getopt \ --set FLAGS_GETOPT_CMD ${pkgs.getopt}/bin/getopt \
--suffix PATH : ${pkgs.git}/bin --suffix PATH : ${pkgs.git}/bin \
--prefix PATH : ${pkgs.coreutils}/bin
''; '';
meta = with lib; { meta = with lib; {