![Kirill Elagin](/assets/img/avatar_default.png)
* Make the build system embed the correct path to gitweb into git-instaweb * Move gitweb fixups to the git expression, to make sure that gitweb used by git-instaweb is functional * This will increase the closure size of git, but only with perlSupport
27 lines
608 B
Nix
27 lines
608 B
Nix
{ stdenv, git, fetchFromGitHub
|
|
, gitwebTheme ? false }:
|
|
|
|
let
|
|
gitwebThemeSrc = fetchFromGitHub {
|
|
owner = "kogakure";
|
|
repo = "gitweb-theme";
|
|
rev = "049b88e664a359f8ec25dc6f531b7e2aa60dd1a2";
|
|
sha256 = "0wksqma41z36dbv6w6iplkjfdm0ha3njp222fakyh4lismajr71p";
|
|
};
|
|
in stdenv.mkDerivation {
|
|
name = "gitweb-${stdenv.lib.getVersion git}";
|
|
|
|
src = git.gitweb;
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
mv * $out
|
|
|
|
${stdenv.lib.optionalString gitwebTheme "cp ${gitwebThemeSrc}/* $out/static"}
|
|
'';
|
|
|
|
meta = git.meta // {
|
|
maintainers = with stdenv.lib.maintainers; [ gnidorah ];
|
|
};
|
|
}
|