mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
28 lines
687 B
Nix
28 lines
687 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 = [ ];
|
|
};
|
|
}
|