We do not use a "plugin system" for Git addons anymore, and therefore this directory is no longer useful. Indeed that directory is way more confusing, given that it includes more than mere Git addons, going from Bitbucket server command-line tools to complete rewrites of Git in exotic programming languages. Also, without this directory, the mental load of decision-making reduces a lot. When anyone is interested in including a new git-related tool, just put it into pkgs/applications/version-management, without apologies.
33 lines
826 B
Nix
33 lines
826 B
Nix
{ lib, stdenv, python, perl, fetchFromGitHub, installShellFiles }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "git-publish";
|
|
version = "1.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stefanha";
|
|
repo = "git-publish";
|
|
rev = "v${version}";
|
|
sha256 = "14rz5kli6sz171cvdc46z3z0nnpd57rliwr6nn6vjjc49yyfwgl4";
|
|
};
|
|
|
|
nativeBuildInputs = [ perl installShellFiles ];
|
|
buildInputs = [ python ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm0755 git-publish $out/bin/git-publish
|
|
pod2man git-publish.pod > git-publish.1
|
|
installManPage git-publish.1
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Prepare and store patch revisions as git tags";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.lheckemann ];
|
|
homepage = "https://github.com/stefanha/git-publish";
|
|
};
|
|
}
|