d994dabace
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.
27 lines
709 B
Nix
27 lines
709 B
Nix
{ lib, buildEnv, git, fetchFromGitHub
|
|
, gitwebTheme ? false }:
|
|
|
|
let
|
|
gitwebThemeSrc = fetchFromGitHub {
|
|
owner = "kogakure";
|
|
repo = "gitweb-theme";
|
|
rev = "049b88e664a359f8ec25dc6f531b7e2aa60dd1a2";
|
|
postFetch = ''
|
|
mkdir -p "$TMPDIR/gitwebTheme"
|
|
mv "$out"/* "$TMPDIR/gitwebTheme/"
|
|
mkdir "$out/static"
|
|
mv "$TMPDIR/gitwebTheme"/* "$out/static/"
|
|
'';
|
|
sha256 = "17hypq6jvhy6zhh26lp3nyi52npfd5wy5752k6sq0shk4na2acqi";
|
|
};
|
|
in buildEnv {
|
|
name = "gitweb-${lib.getVersion git}";
|
|
|
|
ignoreCollisions = true;
|
|
paths = lib.optional gitwebTheme gitwebThemeSrc
|
|
++ [ "${git}/share/gitweb" ];
|
|
|
|
meta = git.meta // {
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|