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
Add 'extraLdPath' option to JetBrains products & Fix JDK download fea… #112268
Add 'extraLdPath' option to JetBrains products & Fix JDK download fea… #112268
Conversation
If some peeps stumble across this PR and it's not merged yet - may I suggest patching your own channel using this PR :D |
Result of 2 packages failed to build:2 warnings produced:
|
Result of 2 packages built:2 warnings produced:
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff LGTM
I just realized that this fixes the issue only due to this Lil script that I had for ages in my config: system.activationScripts.ldso = lib.stringAfter [ "usrbinenv" ] ''
mkdir -m 0755 -p /lib64
ln -sfn ${pkgs.glibc.out}/lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2.tmp
mv -f /lib64/ld-linux-x86-64.so.2.tmp /lib64/ld-linux-x86-64.so.2 # atomically replace
''; which makes me question if this PR is valid.... :/ On one hand, it does not fix the problem (and to me, it seems that there is no fix without changes on JetBrain's side). On another hand, this PR makes it (much) easier to get this Intellij feature to work on NixOS. Also, may I add that the TL;DR: I guess I would still rather have this PR merged especially since it does not add any extra dependencies but I would understand if it were to get rejected. EDIT:
From my point of view, this makes this PR the only "sane" option to persist this feature. Other options:
|
This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 2 packages built:
The following issues got detected with the above build packages. jetbrains.idea-community:
Near pkgs/applications/editors/jetbrains/common.nix:39:3:
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/patch-phase.md Near pkgs/applications/editors/jetbrains/common.nix:64:3:
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-phase-hooks.md
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/no-uri-literals.md
Near pkgs/applications/editors/jetbrains/common.nix:39:3:
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/patch-phase.md Near pkgs/applications/editors/jetbrains/common.nix:64:3:
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-phase-hooks.md
See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/no-uri-literals.md |
Fixes #93829
Tested with multiple jdk's - seems to work great
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)