diff options
Diffstat (limited to 'pkgs/applications/version-management/cgit/default.nix')
-rw-r--r-- | pkgs/applications/version-management/cgit/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/cgit/default.nix b/pkgs/applications/version-management/cgit/default.nix new file mode 100644 index 00000000000..f6a0af10230 --- /dev/null +++ b/pkgs/applications/version-management/cgit/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchurl, callPackage, luajit }: + +callPackage (import ./common.nix rec { + pname = "cgit"; + version = "1.2.3"; + + src = fetchurl { + url = "https://git.zx2c4.com/cgit/snapshot/${pname}-${version}.tar.xz"; + sha256 = "193d990ym10qlslk0p8mjwp2j6rhqa7fq0y1iff65lvbyv914pss"; + }; + + # cgit is tightly coupled with git and needs a git source tree to build. + # IMPORTANT: Remember to check which git version cgit needs on every version + # bump (look for "GIT_VER" in the top-level Makefile). + gitSrc = fetchurl { + url = "mirror://kernel/software/scm/git/git-2.25.1.tar.xz"; + sha256 = "09lzwa183nblr6l8ib35g2xrjf9wm9yhk3szfvyzkwivdv69c9r2"; + }; + + buildInputs = [ luajit ]; + + homepage = "https://git.zx2c4.com/cgit/about/"; + description = "Web frontend for git repositories"; + maintainers = with lib.maintainers; [ bjornfor ]; +}) {} |