gogs: Fix cyclic dependency on darwin

This fixes the "cycle detected in the references of" error when building
on darwin. The fix is based on the solution in issue #18131.
This commit is contained in:
Josef Kemetmueller 2017-07-03 23:16:36 +02:00
parent dc7cc77111
commit 7f7b74dfed

View File

@ -26,7 +26,9 @@ buildGoPackage rec {
outputs = [ "bin" "out" "data" ];
postInstall = ''
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -delete_rpath $out/lib $bin/bin/gogs
'' + ''
mkdir $data
cp -R $src/{public,templates} $data