2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildEnv, git, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, gitwebTheme ? false }:
|
|
|
|
|
|
|
|
let
|
|
|
|
gitwebThemeSrc = fetchFromGitHub {
|
|
|
|
owner = "kogakure";
|
|
|
|
repo = "gitweb-theme";
|
|
|
|
rev = "049b88e664a359f8ec25dc6f531b7e2aa60dd1a2";
|
|
|
|
extraPostFetch = ''
|
|
|
|
mkdir -p "$TMPDIR/gitwebTheme"
|
|
|
|
mv "$out"/* "$TMPDIR/gitwebTheme/"
|
|
|
|
mkdir "$out/static"
|
|
|
|
mv "$TMPDIR/gitwebTheme"/* "$out/static/"
|
|
|
|
'';
|
|
|
|
sha256 = "17hypq6jvhy6zhh26lp3nyi52npfd5wy5752k6sq0shk4na2acqi";
|
|
|
|
};
|
|
|
|
in buildEnv {
|
2021-01-17 00:15:33 +00:00
|
|
|
name = "gitweb-${lib.getVersion git}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
ignoreCollisions = true;
|
2021-01-17 00:15:33 +00:00
|
|
|
paths = lib.optional gitwebTheme gitwebThemeSrc
|
2020-04-24 23:36:52 +00:00
|
|
|
++ [ "${git}/share/gitweb" ];
|
|
|
|
|
|
|
|
meta = git.meta // {
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = with lib.maintainers; [ gnidorah ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|