gogs: avoid creating symlinks each run

This commit is contained in:
Bob van der Linden
2017-10-02 21:04:32 +02:00
parent 6dc9d21cc8
commit 9d841295f3
2 changed files with 11 additions and 4 deletions

View File

@@ -33,10 +33,7 @@ buildGoPackage rec {
cp -R $src/{public,templates} $data
wrapProgram $bin/bin/gogs \
--prefix PATH : ${makeBinPath [ bash git gzip openssh ]} \
--run 'export GOGS_WORK_DIR=''${GOGS_WORK_DIR:-$PWD}' \
--run 'mkdir -p "$GOGS_WORK_DIR" && cd "$GOGS_WORK_DIR"' \
--run "ln -fs $data/{public,templates} ."
--prefix PATH : ${makeBinPath [ bash git gzip openssh ]}
'';
goPackagePath = "github.com/gogits/gogs";