[Nix-dev] Make Firefox/Chrome use OpenJDK instead of Oracle JDK?
Anderson Torres
torres.anderson.85 at gmail.com
Sun Feb 15 01:18:56 CET 2015
2015-02-14 21:06 GMT-02:00 Chad Joan <chadjoan at gmail.com>:
> Hello!
>
> Is it possible to make Firefox/Chrome use OpenJDK instead of Oracle JDK?
> If so, how?
>
> I have read this article: https://nixos.org/wiki/Enable_Browser_Plugins
>
> Here is my configuration.nix: http://pastebin.com/hA2eV7TM
>
> In my first attempt, I tried to follow the wiki advice, including the "jre =
> true" suggestion, but with ignoring the suggestion to download Oracle JDK in
> advance. Predictably, when I ran "nixos-rebuild switch", it failed and
> complained about needing Oracle JDK to be manually downloaded.
>
> Next, used the same configuration, but with one exception: I tried adding
> pkgs.jdk to my environment.systemPackages list. This is the attribute name
> I get when I run 'nix-env -qaP --description ".*jdk.*"' (I still wonder why
> that query doesn't bring up the Oracle JDK as well...). This failed the
> same way as the first attempt.
>
> I am suspecting that pkgs.jdk doesn't fulfill the JDK/JRE dependency given
> by firefoxWrapper. This would be unintuitive to me, because any JDK should
> be able to satisfy a JDK/JRE dependency. Hopefully I just misunderstand how
> NixOS is resolving dependencies :)
>
> I am trying to avoid the Oracle JRE because I don't want it to bug me with a
> fetch restriction every time a system update bumps my Java version. I've
> been through this with Gentoo, and it has made me put extra effort into
> avoiding things with licenses that require manual downloading.
>
> At some level, I am hoping to find something analogous to (or capable of
> replacing) Gentoo's virtual packages. "virtual" packages in Gentoo would be
> used for things like Java, where there are multiple implementations for a
> piece of software. A package (ex: firefox) can depend on a virtual package
> (ex: jre) to avoid locking the admin into a specific implementation, and a
> virtual package can be installed by installing any one of its
> implementations.:
Maybe it could help:
https://nixos.org/wiki/Nix_Modifying_Packages
>
> Thanks in advance!
> - Chad
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
More information about the nix-dev
mailing list