Re: [Nix-dev] Override php xslSupport config option

2016-11-01 Thread Игорь Пашев
Last time it didn't work for me :) 01 нояб. 2016 г. 22:56 пользователь "4levels" <4lev...@gmail.com> написал: > Hi all, > > seems like > > nixpkgs.config.php.xsl = true; > > is all I needed to add to my NixOps deploy expression.. great! > This triggered the download of the php sources (as

Re: [Nix-dev] Override php xslSupport config option

2016-11-01 Thread 4levels
Hi all, seems like nixpkgs.config.php.xsl = true; is all I needed to add to my NixOps deploy expression.. great! This triggered the download of the php sources (as well as libxslt) and PHP is being built with xsl support.. I knew I was overlooking something obvious ;-) Kind regards, Erik

Re: [Nix-dev] Override php xslSupport config option

2016-11-01 Thread 4levels
Hi all, I tried the other way as mentioned in the Wiki as follows: nixpkgs.config.packageOverrides = pkgs: rec { php56 = pkgs.stdenv.lib.overrideDerivation pkgs.php56 (oldAttrs: { cfg.xslSupport = true; }); }; But this results in *error: cannot coerce a set to a

Re: [Nix-dev] Override php xslSupport config option

2016-11-01 Thread 4levels
Hi all, I've managed to at least fix the build errors by adding the following (after reading the Wiki on package overrides here https://nixos.org/wiki/Nix_Modifying_Packages#Overriding_Existing_Packages So the nixops deploy command succeeds, but unfortunately still no xsl support in PHP I

Re: [Nix-dev] Override php xslSupport config option

2016-11-01 Thread 4levels
Hi Devs, thanks for the info! However I'm struggling to get this in my NixOps config, my expression keeps failing as I'm probably doing it all wrong since I have no experience with packageOverrides. Can you provide an example (or link to one) where I can see this mechanism work? This is what I

Re: [Nix-dev] Override php xslSupport config option

2016-10-30 Thread Jookia
On Sun, Oct 30, 2016 at 09:59:20PM +0300, Игорь Пашев wrote: > Something like this: > > { php70 }: php70.merge { > cfg = { > apxs2Support = false; > ldapSupport = false; > mssqlSupport = false; > pdo_pgsqlSupport = false; > postgresqlSupport = false; > sqliteSupport =

Re: [Nix-dev] Override php xslSupport config option

2016-10-30 Thread Игорь Пашев
Something like this: { php70 }: php70.merge { cfg = { apxs2Support = false; ldapSupport = false; mssqlSupport = false; pdo_pgsqlSupport = false; postgresqlSupport = false; sqliteSupport = false; xslSupport = false; }; } Use this with

[Nix-dev] Override php xslSupport config option

2016-10-30 Thread 4levels
Hi Nix Devs, I must be overlooking something obvious here, but I'm failing to enable XSL support in PHP. In this file https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/php/default.nix I see there is a config option cfg.xslSupport which defaults to false. How can I set