nixpkgs/pkgs/applications/version-management/git-hub/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, gitMinimal, docutils }:
stdenv.mkDerivation rec {
pname = "git-hub";
2022-02-11 19:39:16 +00:00
version = "2.1.3";
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=";
};
2017-10-26 10:16:54 +00:00
nativeBuildInputs = [
gitMinimal # Used during build to generate Bash completion.
docutils
2017-10-26 10:16:54 +00:00
];
postPatch = ''
patchShebangs .
'';
enableParallelBuilding = true;
2017-10-26 10:16:54 +00:00
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}
'';
meta = with lib; {
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";
};
}