9 Oct 2024 |
Pol | I'm in the process of doing some maintenance in the PHP Packages and Bundles we've made at work... | 08:15:52 |
Pol | And while testing the bundles on a new Symfony app, I notice this: https://gist.github.com/drupol/31f96f358e9d35e1095f0ba5dd92c056 | 08:16:04 |
Pol | This is quite new. | 08:16:07 |
Pol | Issue opened: https://github.com/SymfonyCasts/sass-bundle/issues/75 | 08:42:42 |
10 Oct 2024 |
| p4cmanus3r joined the room. | 13:26:26 |
11 Oct 2024 |
@patka:envs.net | Any problems with me slowly converting things to buildComposerProject2 ? | 13:44:49 |
ma27 | I thought it had reproducibility issues? Or were those fixed? | 13:51:27 |
@patka:envs.net | Those should be fixed with https://github.com/NixOS/nixpkgs/pull/343762
I've updated a bunch of packages and ran it multiple times and it all seems to work | 13:55:15 |
ma27 | nice, good to know! | 13:58:35 |
12 Oct 2024 |
Pol | In reply to @patka:envs.net Any problems with me slowly converting things to buildComposerProject2 ? Absolutely not! | 19:24:57 |
18 Oct 2024 |
| hansemschnokeloch joined the room. | 12:23:12 |
hansemschnokeloch | Hi, parallel extension seems not to be available on nixpkgs, how can I install this extension ? https://www.php.net/manual/en/intro.parallel.php | 12:25:58 |
Pol | hansemschnokeloch: Have a look at the existing package extension, and try to do the same in a PR against nixpkgs ? | 19:46:04 |
Pol | * hansemschnokeloch: Have a look at the existing PHP extensions, and try to do the same in a PR against nixpkgs ? | 19:46:14 |
19 Oct 2024 |
hansemschnokeloch | Thx, I'll give it a try. | 08:58:08 |
hansemschnokeloch | I've following error phpize: command not found with
{ sources ? import ../npins
, nixpkgs ? sources."nixos-unstable"
, pkgs
, buildPecl ? pkgs.callPackage (nixpkgs + "/pkgs/build-support/php/build-pecl.nix") { }
,
}:
let
versionData =
{
version = "1.2.4";
sha256 = "sha256-s9W9aZpQsJLdzZ/d2E1iGDsMTAAjeWbOgWeKP6nNp0A=";
};
in
buildPecl
{
pname = "parallel";
inherit (versionData) version sha256;
}
| 14:06:31 |
hansemschnokeloch | how can I get phpize ? | 14:11:06 |
hansemschnokeloch | Redacted or Malformed Event | 14:21:37 |
Pol | Let me give you a proper inspiration file | 14:34:18 |
Pol | Try this? https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/php-packages/ast/default.nix | 14:34:42 |
hansemschnokeloch | I didn't mention that it build when I add the extension to a local version of nixpkgs. The code above is an attempt to add the extension without using my local version of nixpkgs. | 14:42:18 |
Pol | Let me give it a quick try. | 18:59:16 |
Pol | parallel requires PHP with ZTS enabled. The buildPecl wrapper doesn't let you customize the php . Going to fix this. | 19:12:19 |
Pol | I think I've got a working proof of concept, going to post this on nixpkgs soon. | 19:12:35 |
Pol | Argh can't get it to work... | 19:48:55 |
Pol | I have no clue how we could specify the PHP version to use to the buildPecl builder. | 19:49:20 |
23 Oct 2024 |
hansemschnokeloch | I found a way to specify the php version in buildPecl, but I'm not quite sure if this is the right way to do it. My PR https://github.com/NixOS/nixpkgs/pull/350771 | 20:05:45 |
24 Oct 2024 |
Pol | hansemschnokeloch: Nice ! I didn't know it was php.unwrapped I was passing php . This is why it was not working. | 08:14:28 |
Pol | I just made a new comment, asking for changes. | 08:14:39 |
Pol | We usually do not pass pkgs to derivations. | 08:14:47 |