| 17 May 2023 |
Gaël Reyrol | The script is working well but I am worried about the way package are downloaded, it will be hard to re-implement each source type. | 12:53:58 |
Gaël Reyrol | * The script is working well but I am worried about the way the packages are downloaded, it will be hard to re-implement each source type. | 12:54:13 |
Gaël Reyrol | Not that hard but it will introduce an overhead complexity | 12:55:08 |
Gaël Reyrol | But indeed it works the same way as c4 | 12:59:55 |
Gaël Reyrol | If I look at the fetchNpmDeps from node build-support files, it appears that they handle git, git+ssh, git+https and ssh git hosts. | 13:04:53 |
Pol | I agree. | 13:32:06 |
Pol | Maybe the composer plugin is a better way to go then? | 13:36:13 |
Gaël Reyrol | For now I edited the composer-setup-hook.sh but I get an error at the execution of the script nix-repl> :b pkgs.phpPackages.psalm error: builder for '/nix/store/953mghp1rkxh37m7rka61pfxglijq53f-composer-2.5.5-composer-cache.drv' failed with exit code 127; last 3 log lines: > /nix/store/qxn0wmvji49mawyyr0p7hq2gch965454-composer-create-repository-python: line 2: from: command not found > /nix/store/mciym69qni8j8rzdndkcqjgh8apk8sxw-stdenv-linux/setup: line 703: pop_var_context: head of shell_variables not a function context > /nix/store/mciym69qni8j8rzdndkcqjgh8apk8sxw-stdenv-linux/setup: line 710: pop_var_context: head of shell_variables not a function context For full logs, run 'nix log /nix/store/953mghp1rkxh37m7rka61pfxglijq53f-composer-2.5.5-composer-cache.drv'. | 13:36:39 |
Pol | oops :S | 13:37:05 |
Gaël Reyrol | I think it tries to use bash to execute it and I don't understand why | 13:37:14 |
Gaël Reyrol | /nix/store/qxn0wmvji49mawyyr0p7hq2gch965454-composer-create-repository-python: line 2: from: command not found | 13:38:14 |
Pol | (side question, how do you do to use pkgs from nix-repl ?) | 13:38:26 |
Pol | Redacted or Malformed Event | 13:38:46 |
Gaël Reyrol | from the root of nixpkgs, I launch nix repl | 13:38:53 |
Gaël Reyrol | then load it with :l . | 13:39:01 |
Gaël Reyrol | then I can access to entire nixpkgs tree | 13:39:24 |
Pol | Oh I was doing :lf . | 13:39:25 |
Pol | Thanks :) | 13:39:28 |
Gaël Reyrol | lf is for flakes ;) | 13:39:37 |
Gaël Reyrol | so I guess :l is just for the standard way | 13:40:06 |
Pol | indeed.. | 13:40:16 |
Pol | In the meantime, I have found this: https://github.com/composer/satis | 13:41:39 |
Pol | I will see if it can help us. | 13:41:49 |
Gaël Reyrol | hmm I knew that tool but it is an open source alternative to packagist.com | 13:43:08 |
Gaël Reyrol | How would you use it? | 13:43:29 |
Pol | It is doing what we want to do | 13:44:27 |
Pol | It builds a local packagist repo | 13:44:38 |
Pol | This is basically what the python script is doing | 13:44:53 |
Gaël Reyrol | true | 13:46:05 |
Pol | Redacted or Malformed Event | 14:07:14 |