| 19 Aug 2022 |
Gaël Reyrol | In reply to @drupol:matrix.org Maybe you'll find it useful. Find it here: https://github.com/loophp/nix-shell/ Thx ! It works like a charm <3, it would be nice to have the composer lib available from phpcs to include multiple composer files in the case of a monorepo ;) | 07:52:37 |
Pol | What do you mean? | 07:54:22 |
Pol | What is the "composer lib" ? | 07:55:07 |
Gaël Reyrol | In reply to @drupol:matrix.org What is the "composer lib" ? The function that get extensions from composer requirements | 08:03:33 |
Pol | Ooooh I see. | 08:04:02 |
Pol | It is actually. | 08:04:19 |
Pol | https://github.com/loophp/nix-shell/blob/master/src/phps.nix#L5 | 08:04:48 |
Pol | You can include this file and enjoy it | 08:04:56 |
Pol | I guess there are room for improvements and features, feel free to suggest what I could do | 08:05:21 |
Gaël Reyrol | In reply to @drupol:matrix.org I guess there are room for improvements and features, feel free to suggest what I could do Sure but I need to learn a bit more about Nix lang :) | 08:15:36 |
Pol | The problem that I have is that if you want to read a user file, then you must add --impure, it's mandatory. It's ugly I know, but it works well. | 08:15:43 |
Pol | Same here, I'm learning everyday :) | 08:15:57 |
Pol | Let me know if you have any question I can assist you with, don't hesitate. | 08:16:15 |
Gaël Reyrol | Redacted or Malformed Event | 08:16:38 |
Pol | and I speak french, so, hit me up in private if it's' easier. | 08:17:49 |
Gaël Reyrol | In reply to @drupol:matrix.org Let me know if you have any question I can assist you with, don't hesitate. Thanks, I have one last question, I am looking into making PHPStorm aware of the nix dev shell | 08:18:10 |
Pol | You have to run PHPStorm from the shell | 08:18:27 |
Pol | This is how we do | 08:18:32 |
Gaël Reyrol | Okay, I was trying to find a plugin that would be able to do that | 08:19:04 |
Pol | Couldn't find a better solution yet | 08:19:14 |
Gaël Reyrol | Alright :) | 08:20:19 |
Pol | I suggest you to use direnv :) | 08:20:34 |
Pol | Are you using home Manager? | 08:20:44 |
Gaël Reyrol | Yes | 08:22:56 |
Pol | this might be useful for you: | 08:23:07 |
Pol | https://code.europa.eu/ecphp/ec-linux-workspace | 08:23:23 |
Pol | It setup fish + direnv automatically | 08:23:30 |
Pol | And direnv is amazing | 08:23:42 |
Gaël Reyrol | Thanks, my setup is here: https://github.com/gaelreyrol/nixos-config, it needs a bit of refactoring, deduplicate configurations but I am satisfied with it ;) | 08:28:06 |
Pol | Ok you already got it :) | 08:30:43 |