diff options
author | Bryan Lai <bryanlais@gmail.com> | 2024-02-16 23:39:16 +0800 |
---|---|---|
committer | Bryan Lai <bryanlais@gmail.com> | 2024-02-16 23:39:16 +0800 |
commit | d5a849cb0fc23af09f1a668e46d20510cf446884 (patch) | |
tree | ce3b3c3274a3d5fd1bb0c64de9db99f3a717b3e9 /pkgs/applications/version-management/git-branchless | |
parent | 0a349ba40dbf9cb5ac499d72b636b85807ff0ef1 (diff) |
git-branchless: install man pages
This fixes the failure of `git cmd --help` where `cmd` is some git-branchless alias. The error is due to a quirk of git: when supplied with the long form `--help` flag, the git binary eats the flag and instead look for man page of `cmd`. This errors out unless the man page for `cmd` is properly installed. In the case of `git-branchless`, this can be achieved with the command `git-branchless install-man-pages`, as implemented in this patch.
Diffstat (limited to 'pkgs/applications/version-management/git-branchless')
-rw-r--r-- | pkgs/applications/version-management/git-branchless/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-branchless/default.nix b/pkgs/applications/version-management/git-branchless/default.nix index 6bcfb0a6cdc77..a8041f2698bb9 100644 --- a/pkgs/applications/version-management/git-branchless/default.nix +++ b/pkgs/applications/version-management/git-branchless/default.nix @@ -37,6 +37,10 @@ rustPlatform.buildRustPackage rec { libiconv ]; + postInstall = '' + $out/bin/git-branchless install-man-pages $out/share/man + ''; + preCheck = '' export TEST_GIT=${git}/bin/git export TEST_GIT_EXEC_PATH=$(${git}/bin/git --exec-path) |