summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/version-management/gitea
diff options
context:
space:
mode:
authorAlex Feldman-Crough <alex@fldcr.com>2017-12-16 09:42:20 -0800
committerAlex Feldman-Crough <alex@fldcr.com>2017-12-16 09:43:13 -0800
commit98e3a4c8793795e2b28039bd7df3792e81c86764 (patch)
tree06273da58e909d46d7c8ec94f2894c1dd1e0c01a /pkgs/applications/version-management/gitea
parenta192ac595993a8afb49a8caf4e3f55074be6693b (diff)
gitea: 1.2.3 -> 1.3.2
Diffstat (limited to 'pkgs/applications/version-management/gitea')
-rw-r--r--pkgs/applications/version-management/gitea/default.nix4
-rw-r--r--pkgs/applications/version-management/gitea/static-root-path.patch6
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/version-management/gitea/default.nix b/pkgs/applications/version-management/gitea/default.nix
index d4afdd7b3cd4..f09d02ab022e 100644
--- a/pkgs/applications/version-management/gitea/default.nix
+++ b/pkgs/applications/version-management/gitea/default.nix
@@ -7,13 +7,13 @@ with stdenv.lib;
buildGoPackage rec {
name = "gitea-${version}";
- version = "1.2.3";
+ version = "1.3.2";
src = fetchFromGitHub {
owner = "go-gitea";
repo = "gitea";
rev = "v${version}";
- sha256 = "0v24q14xzmqgwk10m7rqyn6pahd630v3bnc646ij4w8fbgr8hzja";
+ sha256 = "11gzb6x8zixmkm57x8hdncmdbbvppzld3yf7p7m0abigg8zyybsj";
};
patches = [ ./static-root-path.patch ];
diff --git a/pkgs/applications/version-management/gitea/static-root-path.patch b/pkgs/applications/version-management/gitea/static-root-path.patch
index 06ce521e9e8d..7c36afdff84c 100644
--- a/pkgs/applications/version-management/gitea/static-root-path.patch
+++ b/pkgs/applications/version-management/gitea/static-root-path.patch
@@ -2,12 +2,12 @@ diff --git i/modules/setting/setting.go w/modules/setting/setting.go
index aafe2d1b..1e4a8064 100644
--- i/modules/setting/setting.go
+++ w/modules/setting/setting.go
-@@ -683,7 +683,7 @@ func NewContext() {
+@@ -730,7 +730,7 @@ func NewContext() {
LocalURL = sec.Key("LOCAL_ROOT_URL").MustString(defaultLocalURL)
OfflineMode = sec.Key("OFFLINE_MODE").MustBool()
DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool()
-- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(workDir)
+- StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(AppWorkPath)
+ StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString("@data@")
- AppDataPath = sec.Key("APP_DATA_PATH").MustString("data")
+ AppDataPath = sec.Key("APP_DATA_PATH").MustString(path.Join(AppWorkPath, "data"))
EnableGzip = sec.Key("ENABLE_GZIP").MustBool()
EnablePprof = sec.Key("ENABLE_PPROF").MustBool(false)