Nix PHP | 74 Members | |
| A room for PHP developers running on Nix | 21 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Jun 2024 | ||
| Pol: you there? | 18:08:18 | |
| Okay never mind, I might have solved it. | 18:10:54 | |
| Okay, so I haven't solved it. I'm using the file
| 18:17:43 | |
| This ought to build the package, even though it may not work. | 18:17:58 | |
But I get Command "build-local-repo-lock" is not defined and the build errors | 18:18:15 | |
| Line 28, you need composerWithPlugin | 19:24:15 | |
| Can't really help right now sorry :( | 19:24:27 | |
| 22 Jun 2024 | ||
| No worries. But do let me know exactly how to get this working because I can' | 03:40:55 | |
| * No worries. But do let me know exactly how to get this working because I can't see any examples for the same | 03:41:02 | |
you need this version of Composer: php.packages.composer-local-repo-plugin | 08:52:06 | |
* you need this version of Composer: php.packages.composer-local-repo-plugin | 08:52:11 | |
(you can find this in pkgs/build-support/php/builders/v1/build-composer-repository.nix | 08:52:25 | |
* (you can find this in pkgs/build-support/php/builders/v1/build-composer-repository.nix) | 08:52:28 | |
| That version of Composer has the only plugin you need to get this working. | 08:52:45 | |
| I admit that using the Composer Plugin helped us, the new version of the builder doesn't need it anymore so it will be easier. Totally. | 08:53:10 | |
| I rebased https://github.com/NixOS/nixpkgs/pull/308059 and set it as ready for review. I didn't took care of that for a couple of weeks and when I gave it a look this morning, I don't see anything that I would change. Ready for review now :) | 09:50:03 | |
| * I rebased https://github.com/NixOS/nixpkgs/pull/308059 and set it as ready for review. I didn't take care of that PR for a couple of weeks and when I gave it a look this morning, I don't see anything that I would change. Ready for review now :) | 10:37:24 | |
| When I do that I get this:
| 16:40:06 | |
I think there's a lot of footguns to using php.composer.composerInstallHook as given in the example. I had to set env.COMPOSER_CACHE_DIR = "/dev/null"; to get stuff to work. | 17:18:24 | |
And it still doesn't access the network to create the repository, unlike when using php.buildComposerProject. | 17:59:06 | |
* I think there's a lot of footguns to using php.composer.composerInstallHook as given in the docs. I had to set env.COMPOSER_CACHE_DIR = "/dev/null"; to get stuff to work. | 18:08:25 | |
| I will need to check it out carefully when I have a bit of time. If you could put online what you did already that would help me. | 20:01:33 | |
| 23 Jun 2024 | ||
| Pol: https://paste.go7box.xyz/?e5acb02c5b224b0d#3uPi4ZvLdaW3BfQCvmwML4KmKmijbKQh7HGTLHK1vZ32 | 03:46:56 | |
These are the contents of pkgs/by-name/fi/firefly-iii/package.nix in my local copy of nixpkgs. | 03:47:54 | |
I try to build this using nix shell --impure --expr 'with import ./. {}; firefly-iii'. Everything else is standard nixpkgs | 03:48:20 | |
| I'll see what I can do | 07:31:52 | |
| This week is very hectic for me, I got my Master Thesis defense on Saturday morning, I'm very very busy... | 07:32:14 | |
| Good luck Pol ! | 08:09:00 | |
| Thank you | 08:09:06 | |
| 24 Jun 2024 | ||
| Was able to get it to work https://github.com/NixOS/nixpkgs/pull/322199 | 17:19:08 | |