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