mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[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:
parent
55205d1fc4
commit
d10a7d846e
1 changed files with 29 additions and 0 deletions
29
overlays.nix
29
overlays.nix
|
|
@ -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 = [
|
aviallon.programs.allowUnfreeList = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue