22 Jun 2024 |
@genghiz:talk.go7box.xyz | No worries. But do let me know exactly how to get this working because I can' | 03:40:55 |
@genghiz:talk.go7box.xyz | * 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 |
Pol | you need this version of Composer : php.packages.composer-local-repo-plugin | 08:52:06 |
Pol | * you need this version of Composer : php.packages.composer-local-repo-plugin | 08:52:11 |
Pol | (you can find this in pkgs/build-support/php/builders/v1/build-composer-repository.nix | 08:52:25 |
Pol | * (you can find this in pkgs/build-support/php/builders/v1/build-composer-repository.nix ) | 08:52:28 |
Pol | That version of Composer has the only plugin you need to get this working. | 08:52:45 |
Pol | 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 |
Pol | 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 |
Pol | * 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 |
@genghiz:talk.go7box.xyz | When I do that I get this:
Executing composerInstallBuildHook
Setting COMPOSER_ROOT_VERSION to 6.1.18
New "composer.lock" has been successfully created in /nix/store/nh1p9v51farsza0cq1vpdgqxfs6qkx3d-firefly-iii-6.1.18-composer-repository
Finished composerInstallBuildHook
no Makefile or custom buildPhase, doing nothing
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
Executing composerInstallInstallHook
Setting COMPOSER_ROOT_VERSION to 6.1.18
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 178 installs, 0 updates, 0 removals
Failed to download phpstan/phpstan from dist: Source path "/nix/store/nh1p9v51farsza0cq1vpdgqxfs6qkx3d-firefly-iii-6.1.18-composer-repository/>
Now trying to download from source
- Syncing phpstan/phpstan (1.11.5) into cache
In Git.php line 473:
Failed to clone https://github.com/phpstan/phpstan.git via https, ssh proto
cols, aborting.
- https://github.com/phpstan/phpstan.git
fatal: could not create leading directories of '/nix/store/7238h8vdl69gyb
vp9d185vgkmammjv9q-nix-community-composer-local-repo-plugin-vendor-1.1.0/ca
che/vcs/https---github.com-phpstan-phpstan.git'
- git@github.com:phpstan/phpstan.git
fatal: could not create leading directories of '/nix/store/7238h8vdl69gyb
vp9d185vgkmammjv9q-nix-community-composer-local-repo-plugin-vendor-1.1.0/ca
che/vcs/https---github.com-phpstan-phpstan.git'
| 16:40:06 |
@genghiz:talk.go7box.xyz | 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 |
@genghiz:talk.go7box.xyz | And it still doesn't access the network to create the repository, unlike when using php.buildComposerProject . | 17:59:06 |
@genghiz:talk.go7box.xyz | * 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 |
Pol | 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 |
@genghiz:talk.go7box.xyz | Pol: https://paste.go7box.xyz/?e5acb02c5b224b0d#3uPi4ZvLdaW3BfQCvmwML4KmKmijbKQh7HGTLHK1vZ32 | 03:46:56 |
@genghiz:talk.go7box.xyz | These are the contents of pkgs/by-name/fi/firefly-iii/package.nix in my local copy of nixpkgs. | 03:47:54 |
@genghiz:talk.go7box.xyz | I try to build this using nix shell --impure --expr 'with import ./. {}; firefly-iii' . Everything else is standard nixpkgs | 03:48:20 |
Pol | I'll see what I can do | 07:31:52 |
Pol | This week is very hectic for me, I got my Master Thesis defense on Saturday morning, I'm very very busy... | 07:32:14 |
@genghiz:talk.go7box.xyz | Good luck Pol ! | 08:09:00 |
Pol | Thank you | 08:09:06 |
24 Jun 2024 |
@genghiz:talk.go7box.xyz | Was able to get it to work https://github.com/NixOS/nixpkgs/pull/322199 | 17:19:08 |
25 Jun 2024 |
| patka (new account: @patka:envs.net) changed their display name from patka to patka (new account: @patka:envs.net). | 08:42:10 |
| patka joined the room. | 08:56:41 |
29 Jun 2024 |
| mib 🥐 joined the room. | 22:25:01 |
30 Jun 2024 |
@genghiz:talk.go7box.xyz | In reply to @genghiz:talk.go7box.xyz Was able to get it to work https://github.com/NixOS/nixpkgs/pull/322199 Would this require other changes before it gets merged? | 10:18:36 |
1 Jul 2024 |
Pol | I commented. | 10:32:22 |
Pol | I'm planning to merge this PR before wednesday: https://github.com/NixOS/nixpkgs/pull/308059 | 10:32:38 |
Pol | It's the Version 2 of the PHP Composer Builder | 10:32:47 |