Skip to content

gogs: Fix cyclic dependency on darwin #27104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

knedlsepp
Copy link
Member

Motivation for this change

This fixes the "cycle detected in the references of" error when building
on darwin. The fix is based on the solution in issue #18131.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@LnL7 LnL7 added the 6.topic: darwin Running or building packages on Darwin label Jul 3, 2017
Copy link
Member

@LnL7 LnL7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick

@@ -26,7 +26,9 @@ buildGoPackage rec {

outputs = [ "bin" "out" "data" ];

postInstall = ''
postInstall = stdenv.lib.optionalString (stdenv.isDarwin) ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parenthesis are not needed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

This fixes the "cycle detected in the references of" error when building
on darwin. The fix is based on the solution in issue NixOS#18131.
@knedlsepp knedlsepp force-pushed the fix-gogs-on-darwin branch from ba9928b to 7f7b74d Compare July 3, 2017 21:47
@LnL7 LnL7 merged commit 2e2769f into NixOS:master Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants