nixpkgs/pkgs/applications/version-management/gitweb/default.nix

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

28 lines
709 B
Nix
Raw Normal View History

{ lib, buildEnv, git, fetchFromGitHub
2018-04-17 19:06:44 +02:00
, gitwebTheme ? false }:
let
gitwebThemeSrc = fetchFromGitHub {
owner = "kogakure";
repo = "gitweb-theme";
rev = "049b88e664a359f8ec25dc6f531b7e2aa60dd1a2";
2022-05-17 21:10:33 +02:00
postFetch = ''
mkdir -p "$TMPDIR/gitwebTheme"
mv "$out"/* "$TMPDIR/gitwebTheme/"
mkdir "$out/static"
mv "$TMPDIR/gitwebTheme"/* "$out/static/"
'';
sha256 = "17hypq6jvhy6zhh26lp3nyi52npfd5wy5752k6sq0shk4na2acqi";
2018-04-17 19:06:44 +02:00
};
in buildEnv {
2021-01-15 14:21:58 +01:00
name = "gitweb-${lib.getVersion git}";
2018-04-17 19:06:44 +02:00
ignoreCollisions = true;
2021-01-15 14:21:58 +01:00
paths = lib.optional gitwebTheme gitwebThemeSrc
++ [ "${git}/share/gitweb" ];
2018-04-17 19:06:44 +02:00
meta = git.meta // {
maintainers = with lib.maintainers; [ ];
2018-04-17 19:06:44 +02:00
};
}