git-credential-oauth: install manpage

A manual page is included in the upstream repository. We should properly install it.
This commit is contained in:
Tomo 2024-04-09 13:25:50 -07:00 committed by GitHub
parent 9a7094de99
commit f5e125a142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec { buildGoModule rec {
pname = "git-credential-oauth"; pname = "git-credential-oauth";
@ -11,6 +11,8 @@ buildGoModule rec {
hash = "sha256-bqyoAAqli0L6Kf+W1sTh2vmmfaIj2OdpQyvQZnYOWWA="; hash = "sha256-bqyoAAqli0L6Kf+W1sTh2vmmfaIj2OdpQyvQZnYOWWA=";
}; };
nativeBuildInputs = [ installShellFiles ];
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"
@ -19,6 +21,10 @@ buildGoModule rec {
vendorHash = "sha256-cCqbEv4kBnF6FWvfaXCOxadPVXR/AxXS3nXHf6WmsSs="; vendorHash = "sha256-cCqbEv4kBnF6FWvfaXCOxadPVXR/AxXS3nXHf6WmsSs=";
postInstall = ''
installManPage $src/git-credential-oauth.1
'';
meta = { meta = {
description = "Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth"; description = "Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth";
homepage = "https://github.com/hickford/git-credential-oauth"; homepage = "https://github.com/hickford/git-credential-oauth";