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

Fontconfig for Android Studio #21462

Merged
merged 4 commits into from Jan 11, 2017
Merged

Fontconfig for Android Studio #21462

merged 4 commits into from Jan 11, 2017

Conversation

phunehehe
Copy link
Contributor

@phunehehe phunehehe commented Dec 28, 2016

Motivation for this change

With the fonts.conf by Ubuntu (I use Nix instead of Apt on Ubuntu), Android Studio crashes during startup because it fails to do some font stuff. With a config file built with makeFontsConf (even an empty one!?), it works fine. The workaround is found via docker-library/openjdk#73.

On the one side, it could be argued that I should fix my fonts.conf, but then it means the package isn't really usable out of NixOS.

On the other side, overriding FONTCONFIG_FILE probably means the package can't use all the installed fonts, but then I also see other packages doing the same.

Thoughts?

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

@phunehehe, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bjornfor, @taku0 and @edwtjo to be potential reviewers.

# jdk = pkgs.oraclejdk8;
# };
# };
# }
Copy link
Member

Choose a reason for hiding this comment

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

Why delete this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it's no longer true. This version of android studio bundles its own JDK.

@grahamc
Copy link
Member

grahamc commented Jan 10, 2017

Is this still good to merge?

@phunehehe
Copy link
Contributor Author

It is. The only concern I had was about fontconfig. If nobody chips in I guess it's not really a problem.

@grahamc
Copy link
Member

grahamc commented Jan 11, 2017

If someone is impacted by this, change, hopefully they'll file an issue :)

@grahamc grahamc merged commit acc889f into NixOS:master Jan 11, 2017
@phunehehe phunehehe deleted the android-studio branch January 11, 2017 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants