Skip to content
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

glfw: fix the install name id on darwin #25308

Merged
merged 1 commit into from May 1, 2017
Merged

glfw: fix the install name id on darwin #25308

merged 1 commit into from May 1, 2017

Conversation

acowley
Copy link
Contributor

@acowley acowley commented Apr 29, 2017

Motivation for this change

I encountered a runtime dynamic link failure without this change.

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 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.

@mention-bot
Copy link

@acowley, thanks for your PR! By analyzing the history of the files in this pull request, we identified @andrewrk, @wkennington and @matthewbauer to be potential reviewers.

@joachifm joachifm added the 6.topic: darwin Running or building packages on Darwin label Apr 30, 2017
@@ -23,7 +23,11 @@ stdenv.mkDerivation rec {

cmakeFlags = "-DBUILD_SHARED_LIBS=ON";

meta = with stdenv.lib; {
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libglfw.3.2.dylib $out/lib/libglfw.3.2.dylib
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to use the fixDarwinDylibNames setup hook for this.

@LnL7
Copy link
Member

LnL7 commented Apr 30, 2017

This should probably also have platforms.darwin 😄

Also change platforms to ‘unix‘.
@acowley
Copy link
Contributor Author

acowley commented May 1, 2017

@LnL7 Thanks for the suggestions! I have made the changes you described.

@LnL7 LnL7 merged commit 1046723 into NixOS:master May 1, 2017
@acowley acowley deleted the glfw-id branch October 9, 2017 18:17
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

4 participants