lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.11-beta 48 lines 984 B view raw
1{ lib, buildGoModule, fetchFromGitHub, makeWrapper 2, git, bash, gzip, openssh, pam 3, sqliteSupport ? true 4, pamSupport ? true 5}: 6 7with lib; 8 9buildGoModule rec { 10 pname = "gogs"; 11 version = "0.13.0"; 12 13 src = fetchFromGitHub { 14 owner = "gogs"; 15 repo = "gogs"; 16 rev = "v${version}"; 17 sha256 = "sha256-UfxE+NaqDr3XUXpvlV989Iwjq/lsAwpMTDAPkcOmma8="; 18 }; 19 20 vendorHash = "sha256-ISJOEJ1DWO4nnMpDuZ36Nq528LhgekDh3XUF8adlj2w="; 21 22 subPackages = [ "." ]; 23 24 postPatch = '' 25 patchShebangs . 26 ''; 27 28 nativeBuildInputs = [ makeWrapper openssh ]; 29 30 buildInputs = optional pamSupport pam; 31 32 tags = 33 ( optional sqliteSupport "sqlite" 34 ++ optional pamSupport "pam"); 35 36 postInstall = '' 37 38 wrapProgram $out/bin/gogs \ 39 --prefix PATH : ${makeBinPath [ bash git gzip openssh ]} 40 ''; 41 42 meta = { 43 description = "A painless self-hosted Git service"; 44 homepage = "https://gogs.io"; 45 license = licenses.mit; 46 maintainers = [ maintainers.schneefux ]; 47 }; 48}