2024-08-17 22:29:43 +00:00
|
|
|
{ lib, fetchurl, callPackage, luajit, nixosTests }:
|
2013-04-01 15:42:51 +00:00
|
|
|
|
2022-03-22 11:52:07 +00:00
|
|
|
callPackage (import ./common.nix rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cgit";
|
2020-05-09 17:20:06 +00:00
|
|
|
version = "1.2.3";
|
2013-04-01 15:42:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://git.zx2c4.com/cgit/snapshot/${pname}-${version}.tar.xz";
|
2020-05-09 17:20:06 +00:00
|
|
|
sha256 = "193d990ym10qlslk0p8mjwp2j6rhqa7fq0y1iff65lvbyv914pss";
|
2013-04-01 15:42:51 +00:00
|
|
|
};
|
|
|
|
|
2014-05-17 09:01:57 +00:00
|
|
|
# cgit is tightly coupled with git and needs a git source tree to build.
|
2013-04-01 15:42:51 +00:00
|
|
|
# IMPORTANT: Remember to check which git version cgit needs on every version
|
2016-12-27 14:46:22 +00:00
|
|
|
# bump (look for "GIT_VER" in the top-level Makefile).
|
2013-04-01 15:42:51 +00:00
|
|
|
gitSrc = fetchurl {
|
2020-05-09 17:20:06 +00:00
|
|
|
url = "mirror://kernel/software/scm/git/git-2.25.1.tar.xz";
|
|
|
|
sha256 = "09lzwa183nblr6l8ib35g2xrjf9wm9yhk3szfvyzkwivdv69c9r2";
|
2013-04-01 15:42:51 +00:00
|
|
|
};
|
|
|
|
|
2022-03-22 11:52:07 +00:00
|
|
|
buildInputs = [ luajit ];
|
2013-04-01 15:42:51 +00:00
|
|
|
|
2024-08-17 22:29:43 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) cgit; };
|
|
|
|
|
2022-03-22 11:52:07 +00:00
|
|
|
homepage = "https://git.zx2c4.com/cgit/about/";
|
|
|
|
description = "Web frontend for git repositories";
|
|
|
|
maintainers = with lib.maintainers; [ bjornfor ];
|
|
|
|
}) {}
|