1{ lib, fetchurl, callPackage, luajit }:
2
3callPackage (import ./common.nix rec {
4 pname = "cgit";
5 version = "1.2.3";
6
7 src = fetchurl {
8 url = "https://git.zx2c4.com/cgit/snapshot/${pname}-${version}.tar.xz";
9 sha256 = "193d990ym10qlslk0p8mjwp2j6rhqa7fq0y1iff65lvbyv914pss";
10 };
11
12 # cgit is tightly coupled with git and needs a git source tree to build.
13 # IMPORTANT: Remember to check which git version cgit needs on every version
14 # bump (look for "GIT_VER" in the top-level Makefile).
15 gitSrc = fetchurl {
16 url = "mirror://kernel/software/scm/git/git-2.25.1.tar.xz";
17 sha256 = "09lzwa183nblr6l8ib35g2xrjf9wm9yhk3szfvyzkwivdv69c9r2";
18 };
19
20 buildInputs = [ luajit ];
21
22 homepage = "https://git.zx2c4.com/cgit/about/";
23 description = "Web frontend for git repositories";
24 maintainers = with lib.maintainers; [ bjornfor ];
25}) {}