@danbst I wonder if this is the reason for home
being set incorrectly? Yet when I attempt home = self.jetbrains.jdk.home
I get infinite recursion.
Okay, setting the passthru.home appending /Contents/Home
works. Dunno if there’s a more elegant way.
So the overlay that works for me, thanks to @danbst, is as follows:
self: super:
{
jetbrains = super.jetbrains // {
jdk = super.jetbrains.jdk.overrideAttrs (oldAttrs: rec {
version = "520.11";
src = super.fetchurl {
url = "https://bintray.com/jetbrains/intellij-jbr/download_file?file_path=jbrsdk-11_0_4-osx-x64-b520.11.tar.gz";
sha256 = "3fe1297133440a9056602d78d7987f9215139165bd7747b3303022a6f5e23834";
};
passthru = oldAttrs.passthru // {
home = "${self.jetbrains.jdk}/Contents/Home";
};
});
idea-ultimate = super.jetbrains.idea-ultimate.overrideAttrs (_: {
name = "idea-ultimate.2019.2.4";
src = super.fetchurl {
url = "https://download.jetbrains.com/idea/ideaIU-2019.2.4-no-jbr.tar.gz";
sha256 = "09mz4dx3zbnqw0vh4iqr8sn2s8mvgr7zvn4k7kqivsiv8f79g90a";
};
});
};
}
1 Like
huh, this must be some Mac specific stuff. I see that there was a change done recently to support Mac and IDEA: jetbrains.idea-community: add darwin support by uri-canva · Pull Request #64467 · NixOS/nixpkgs · GitHub
Maybe it is not complete? If you have time, you can clone nixpkgs, update IDEA sources and try install it from nixpkgs source. If it doesn’t work, then yes, some more Mac specific if
s must be added.
1 Like