2021-02-16 17:04:54 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gitMinimal, docutils }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "git-hub";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "2.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sociomantic-tsunami";
|
|
|
|
repo = "git-hub";
|
|
|
|
rev = "v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-Iq6IrW2gAGqq56b2gXpEkg+I/5FcmsESWBJQiG1XWWA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gitMinimal # Used during build to generate Bash completion.
|
2021-02-16 17:04:54 +00:00
|
|
|
docutils
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installFlags = [ "prefix=$(out)" "sysconfdir=$(out)/etc" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Remove inert ftdetect vim plugin and a README that's a man page subset:
|
|
|
|
rm -r $out/share/{doc,vim}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Git command line interface to GitHub";
|
|
|
|
longDescription = ''
|
|
|
|
A simple command line interface to GitHub, enabling most useful GitHub
|
|
|
|
tasks (like creating and listing pull request or issues) to be accessed
|
|
|
|
directly through the Git command line.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|