2021-02-14 22:09:43 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gitMinimal, docutils }:
|
2015-06-02 21:56:56 +00:00
|
|
|
|
2015-11-14 20:32:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "git-hub";
|
2022-02-11 19:39:16 +00:00
|
|
|
version = "2.1.3";
|
2015-06-02 21:56:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2016-04-29 17:41:41 +00:00
|
|
|
owner = "sociomantic-tsunami";
|
2019-12-23 09:49:27 +00:00
|
|
|
repo = "git-hub";
|
|
|
|
rev = "v${version}";
|
2022-02-11 19:39:16 +00:00
|
|
|
sha256 = "sha256-fb/WDmBx1Vayu4fLeG+D1nmHJJawgIAAXcQsABsenBo=";
|
2015-06-02 21:56:56 +00:00
|
|
|
};
|
|
|
|
|
2017-10-26 10:16:54 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
gitMinimal # Used during build to generate Bash completion.
|
2021-02-14 22:09:43 +00:00
|
|
|
docutils
|
2017-10-26 10:16:54 +00:00
|
|
|
];
|
2015-06-02 21:56:56 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-10-26 10:16:54 +00:00
|
|
|
installFlags = [ "prefix=$(out)" "sysconfdir=$(out)/etc" ];
|
2015-08-15 12:25:55 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Remove inert ftdetect vim plugin and a README that's a man page subset:
|
|
|
|
rm -r $out/share/{doc,vim}
|
|
|
|
'';
|
2015-11-14 20:32:51 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-11-14 20:32:51 +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;
|
2018-01-22 05:36:10 +00:00
|
|
|
platforms = platforms.all;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "git-hub";
|
2015-11-14 20:32:51 +00:00
|
|
|
};
|
2015-06-02 21:56:56 +00:00
|
|
|
}
|