!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

81 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
17 May 2023
@drupol:matrix.orgPolSee you later.10:50:43
@Zevran:matrix.orgGaël ReyrolNice !10:51:02
@Zevran:matrix.orgGaël ReyrolI just integrated the python script on my repo : https://github.com/gaelreyrol/nixpkgs/commit/e0002f14eaa1d6baaaef4fb3d823f9de6484904011:24:51
@Zevran:matrix.orgGaël ReyrolI exposed it so it can be installed and called directly in the shell to try the result11:28:43
@drupol:matrix.orgPolAnd how it's going?11:37:42
@drupol:matrix.orgPolWork in progress... 11:58:18
@drupol:matrix.orgPolhttps://imgur.com/a/Wlv4fk011:58:19
@Zevran:matrix.orgGaël ReyrolThe 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
@Zevran:matrix.orgGaë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
@Zevran:matrix.orgGaël ReyrolNot that hard but it will introduce an overhead complexity12:55:08
@Zevran:matrix.orgGaël ReyrolBut indeed it works the same way as c412:59:55
@Zevran:matrix.orgGaë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
@drupol:matrix.orgPolI agree.13:32:06
@drupol:matrix.orgPolMaybe the composer plugin is a better way to go then?13:36:13
@Zevran:matrix.orgGaë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
@drupol:matrix.orgPoloops :S13:37:05
@Zevran:matrix.orgGaël ReyrolI think it tries to use bash to execute it and I don't understand why13:37:14
@Zevran:matrix.orgGaël Reyrol /nix/store/qxn0wmvji49mawyyr0p7hq2gch965454-composer-create-repository-python: line 2: from: command not found 13:38:14
@drupol:matrix.orgPol (side question, how do you do to use pkgs from nix-repl ?) 13:38:26
@drupol:matrix.orgPolRedacted or Malformed Event13:38:46
@Zevran:matrix.orgGaël Reyrol from the root of nixpkgs, I launch nix repl 13:38:53
@Zevran:matrix.orgGaël Reyrol then load it with :l . 13:39:01
@Zevran:matrix.orgGaël Reyrolthen I can access to entire nixpkgs tree13:39:24
@drupol:matrix.orgPol Oh I was doing :lf . 13:39:25
@drupol:matrix.orgPolThanks :)13:39:28
@Zevran:matrix.orgGaël Reyrol lf is for flakes ;) 13:39:37
@Zevran:matrix.orgGaël Reyrol so I guess :l is just for the standard way 13:40:06
@drupol:matrix.orgPolindeed.. 13:40:16
@drupol:matrix.orgPolIn the meantime, I have found this: https://github.com/composer/satis13:41:39
@drupol:matrix.orgPolI will see if it can help us.13:41:49

Show newer messages


Back to Room ListRoom Version: 6