|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
{ stdenv, buildGoPackage, fetchurl, makeWrapper |
|
|
|
|
, git, bash, gzip, openssh, pam |
|
|
|
|
, fetchpatch |
|
|
|
|
, sqliteSupport ? true |
|
|
|
|
, pamSupport ? true |
|
|
|
|
}: |
|
|
|
@ -8,11 +9,11 @@ with stdenv.lib; |
|
|
|
|
|
|
|
|
|
buildGoPackage rec { |
|
|
|
|
pname = "gitea"; |
|
|
|
|
version = "1.11.4"; |
|
|
|
|
version = "1.11.5"; |
|
|
|
|
|
|
|
|
|
src = fetchurl { |
|
|
|
|
url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"; |
|
|
|
|
sha256 = "18k6kcdq0ijpzgay2aq1w95qkgfvrn1dgh4cxyj9c4i0pwb3ar7f"; |
|
|
|
|
sha256 = "0iqxwg53wjwi4vpq2h6fwmniazsi4cf68fcjrs459qbz4d6x8xa9"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
unpackPhase = '' |
|
|
|
@ -22,7 +23,13 @@ buildGoPackage rec { |
|
|
|
|
|
|
|
|
|
sourceRoot = "source"; |
|
|
|
|
|
|
|
|
|
patches = [ ./static-root-path.patch ]; |
|
|
|
|
patches = [ |
|
|
|
|
./static-root-path.patch |
|
|
|
|
(fetchpatch { |
|
|
|
|
url = "https://github.com/go-gitea/gitea/commit/1830d0ed5f4a67e3360ecbb55933b5540b6affce.patch"; |
|
|
|
|
sha256 = "163531pcki28qfs56l64vv4xxaavxgksf038da1sn21j5l2jm81i"; |
|
|
|
|
}) |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
patchShebangs . |
|
|
|
|