Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / cgit / default.nix
blobf6a0af102303b9b771c86f322b8a626e27c40906
1 { lib, fetchurl, callPackage, luajit }:
3 callPackage (import ./common.nix rec {
4   pname = "cgit";
5   version = "1.2.3";
7   src = fetchurl {
8     url = "https://git.zx2c4.com/cgit/snapshot/${pname}-${version}.tar.xz";
9     sha256 = "193d990ym10qlslk0p8mjwp2j6rhqa7fq0y1iff65lvbyv914pss";
10   };
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   };
20   buildInputs = [ luajit ];
22   homepage = "https://git.zx2c4.com/cgit/about/";
23   description = "Web frontend for git repositories";
24   maintainers = with lib.maintainers; [ bjornfor ];
25 }) {}