[Overlays/Packages] Add FHS wrapper for pycharm-professional

Fixes tons issues related to virtualenv handling, selecting the correct interpreter, etc.
This commit is contained in:
Antoine Viallon 2023-04-20 19:14:07 +02:00
parent 55205d1fc4
commit d10a7d846e
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -117,6 +117,35 @@ in
});
})
(final: prev: {
jetbrains = prev.jetbrains // {
pycharm-professional-fhs = (
let
unwrapped = final.jetbrains.pycharm-professional;
in prev.buildFHSUserEnv rec {
name = "pycharm-professional";
targetPkgs = pkgs: (with pkgs; [
glibc
python3Full
python311
python310Full
python39Full
python38Full
python37Full
jetbrains.pycharm-professional
]);
# symlink shared assets, including icons and desktop entries
extraInstallCommands = ''
ln -s "${unwrapped}/share" "$out/"
'';
runScript = "${unwrapped}/bin/pycharm-professional";
});
};
})
];
aviallon.programs.allowUnfreeList = [