summary refs log tree commit diff
path: root/pkgs/applications/version-management/gogs
diff options
context:
space:
mode:
authorJosef Kemetmueller <josef.kemetmueller@gmail.com>2017-07-03 23:16:36 +0200
committerJosef Kemetmueller <josef.kemetmueller@gmail.com>2017-07-03 23:47:39 +0200
commit7f7b74dfed2ede093fec5f7338319bf72c4fc3c3 (patch)
treee960668d3cac7fc91ec4722b41fc412d296630cb /pkgs/applications/version-management/gogs
parentdc7cc77111a49f332c3f4c430685890a1f004c9b (diff)
downloadnixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.tar
nixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.tar.gz
nixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.tar.bz2
nixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.tar.lz
nixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.tar.xz
nixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.tar.zst
nixpkgs-7f7b74dfed2ede093fec5f7338319bf72c4fc3c3.zip
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.
Diffstat (limited to 'pkgs/applications/version-management/gogs')
-rw-r--r--pkgs/applications/version-management/gogs/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/gogs/default.nix b/pkgs/applications/version-management/gogs/default.nix
index 7d1e3710ac0..c8af3fe63f9 100644
--- a/pkgs/applications/version-management/gogs/default.nix
+++ b/pkgs/applications/version-management/gogs/default.nix
@@ -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