{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/3645","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/3645/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/3645/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/3645/events","html_url":"https://github.com/NixOS/nixpkgs/issues/3645","id":40436182,"number":3645,"title":"Java 6 on Nix (and IcedTea build purity)","user":{"login":"auntieNeo","id":574938,"avatar_url":"https://avatars.githubusercontent.com/u/574938?v=3","gravatar_id":"","url":"https://api.github.com/users/auntieNeo","html_url":"https://github.com/auntieNeo","followers_url":"https://api.github.com/users/auntieNeo/followers","following_url":"https://api.github.com/users/auntieNeo/following{/other_user}","gists_url":"https://api.github.com/users/auntieNeo/gists{/gist_id}","starred_url":"https://api.github.com/users/auntieNeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auntieNeo/subscriptions","organizations_url":"https://api.github.com/users/auntieNeo/orgs","repos_url":"https://api.github.com/users/auntieNeo/repos","events_url":"https://api.github.com/users/auntieNeo/events{/privacy}","received_events_url":"https://api.github.com/users/auntieNeo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-08-17T15:21:59Z","updated_at":"2016-07-23T03:34:56Z","closed_at":"2016-07-23T03:34:56Z","body":"I happen to be using some old Java software that requires version 6 of the Java API, but it doesn't look like there are any Java 6 runtimes in nixpkgs. So I'm looking into packaging such a runtime myself. From what I can tell, both OpenJDK6 and IcedTea6 are actively maintained, so security should not be a concern.\r\n\r\nBoth OpenJDK6 and IcedTea6 use build systems that only slightly differ from their Java 7/8 variants. At least that's what their build documentation suggests. Since both OpenJDK7 and IcedTea7 are already in nixpkgs, I'm trying to modify the existing nix expressions. I'm going to ask some questions here before I duplicate any effort.\r\n\r\nThe most difficult thing I'm running into is the bootstrap requirement for building OpenJDK. The OpenJDK documentation recommends using the official, proprietary JDK from Sun/Oracle. Debian's OpenJDK6 package says that it was built with IcedTea. IcedTea suggests using either GCC and the Eclipse Java Compiler or a pre-built install of IcedTea.\r\n\r\nNix actually uses OpenJDK to build IcedTea, and OpenJDK is built from an OpenJDK tarball located at http://tarballs.nixos.org/openjdk-bootstrap-x86_64-linux-2012-08-24.tar.xz. This seems a bit contrary to one of the original intents of IcedTea: providing a Java platform that can be built without proprietary tools. This issue might be silly, and to be honest I'll just be happy to have a JDK6. But for a distribution like NixOS that puts the build system into the hands of the users, it seems like a loss to have a mysterious tarball where it's not necessarily needed.\r\nhttp://en.wikipedia.org/wiki/Icedtea#The_aims\r\n\r\nAnyway, does anyone know where the bootstrap tarball came from? Is this solution just more practical? If I can figure out what I should use to bootstrap Java 6, I'll keep hacking at this."}}
{"actor":{"display_login":"grahamc"}}