| 19 Mar 2023 |
Pol | Yeah ocramius toot about nix from time to time indeed! | 22:11:45 |
Pol | Nice :) | 22:11:52 |
Pol | I made a project you might find interesting | 22:12:06 |
Pol | I, and a lot of colleagues are using in everyday | 22:12:54 |
Pol | https://github.com/loophp/nix-shell | 22:12:56 |
Pol | Basically this project reads the composer file and create a dev environment with the proper extensions and tools | 22:13:44 |
Lars Strojny | I am using it (without composer though): https://github.com/lstrojny/uffff/blob/develop/flake.nix | 22:13:59 |
Pol | For PHP dev only | 22:13:59 |
Lars Strojny | So, thanks for that :) | 22:14:17 |
Pol | Haha ! What a surprise :) | 22:14:34 |
Pol | Nice | 22:14:40 |
Pol | I should add this function in nix core | 22:14:54 |
Lars Strojny | Indeed! | 22:14:59 |
Pol | It's cool to build PHP just with some attributes and text | 22:15:28 |
Lars Strojny | I was hesitating to use composer support as it implies impure flakes. I am wondering though if one could make the flakes pure by relying on composer.lock content-hash. Not sure if that’s at all feasible but it should be safe | 22:16:05 |
Pol | By the way, the first argument of makePhp is system, not pkgs | 22:16:39 |
Lars Strojny | See how great my nix skills are :) | 22:17:07 |
Pol | In reply to @lstrojny:matrix.org I was hesitating to use composer support as it implies impure flakes. I am wondering though if one could make the flakes pure by relying on composer.lock content-hash. Not sure if that’s at all feasible but it should be safe That is possible but it's more complicated. | 22:17:13 |
Pol | In reply to @drupol:matrix.org That is possible but it's more complicated. There is this : https://github.com/drupol/composer-plugin-nixify | 22:18:53 |
Pol | Heading to bed now | 22:19:32 |
Pol | See you tomorrow | 22:19:42 |
Lars Strojny | See you!
| 22:19:53 |
Lars Strojny | Btw, changing pkgs to system gives me that | 22:20:01 |
Lars Strojny |
at /nix/store/s8427y5ln38zyyya2vgh3hfk0cq414mi-source/src/phps.nix:113:12:
112| if builtins.isString php
113| then pkgs."${php}"
| ^
114| else php;```
| 22:20:05 |
Pol | `nix flake update` :) | 22:20:25 |
Lars Strojny | :-D | 22:20:40 |
| 20 Mar 2023 |
Pol | Lars Strojny: I just submitted a PR to refactor your flake.nix: https://github.com/lstrojny/uffff/pull/11 | 07:36:40 |
Pol | It's purely informative and it's totally fine to reject it :) | 07:36:57 |
Pol | Ok since ryantm-bot is not working for PHP and Composer, I created the PR: https://github.com/NixOS/nixpkgs/pull/222253 | 21:36:35 |
Pol | Please have a look on it :) | 21:36:51 |