[Overlays] fix wrong package/script name with Pycharm FHS env

Caused issues with .desktop file
This commit is contained in:
Antoine Viallon 2024-05-23 10:52:22 +02:00
parent 6e94b4ae77
commit eeae546d01
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -96,7 +96,7 @@ in
myIsDerivation = x: !(myLib.derivations.isBroken x); myIsDerivation = x: !(myLib.derivations.isBroken x);
interpreters = pkgs: filter (x: myIsDerivation x) (attrValues pkgs.pythonInterpreters); interpreters = pkgs: filter (x: myIsDerivation x) (attrValues pkgs.pythonInterpreters);
in prev.buildFHSUserEnv rec { in prev.buildFHSUserEnv rec {
name = pkg.name; name = pkg.pname;
targetPkgs = pkgs: (with pkgs; targetPkgs = pkgs: (with pkgs;
[ [
glibc glibc
@ -114,7 +114,7 @@ in
ln -s "${pkg}/share" "$out/" ln -s "${pkg}/share" "$out/"
''; '';
runScript = "/usr/bin/${name}"; runScript = "/usr/bin/${pkg.pname}";
}; };
in { in {
jetbrains = prev.jetbrains // { jetbrains = prev.jetbrains // {