From eeae546d01a5c03b9d88147dd932a3c90c1c31ef Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 23 May 2024 10:52:22 +0200 Subject: [PATCH] [Overlays] fix wrong package/script name with Pycharm FHS env Caused issues with .desktop file --- overlays.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlays.nix b/overlays.nix index 39bbcd6..2850c5a 100644 --- a/overlays.nix +++ b/overlays.nix @@ -96,7 +96,7 @@ in myIsDerivation = x: !(myLib.derivations.isBroken x); interpreters = pkgs: filter (x: myIsDerivation x) (attrValues pkgs.pythonInterpreters); in prev.buildFHSUserEnv rec { - name = pkg.name; + name = pkg.pname; targetPkgs = pkgs: (with pkgs; [ glibc @@ -114,7 +114,7 @@ in ln -s "${pkg}/share" "$out/" ''; - runScript = "/usr/bin/${name}"; + runScript = "/usr/bin/${pkg.pname}"; }; in { jetbrains = prev.jetbrains // {