Re: [Nix-dev] Override php xslSupport config option
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 well as libxslt) and > PHP is being built with xsl support.. > > I knew I was overlooking something obvious ;-) > > Kind regards, > > Erik > > On Tue, Nov 1, 2016 at 4:22 PM 4levels <4lev...@gmail.com> wrote: > >> 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 string* in the php >> default.nix file on line 18, which is the line where the version is >> specified. I'm clearly missing something obvious here (again) so still no >> luck. >> >> Thanks for your support! >> >> Erik >> >> On Tue, Nov 1, 2016 at 2:35 PM 4levels <4lev...@gmail.com> wrote: >> >> 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 currently have the following: >> >> nixpkgs.config.packageOverrides = pkgs: rec { >> php56 = pkgs.php56.override { >> config = { >> xslSupport = true; >> }; >> }; >> }; >> >> >> >> On Tue, Nov 1, 2016 at 2:21 PM 4levels <4lev...@gmail.com> wrote: >> >> 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 currently have (excerpt): >> >> environment.systemPackages = with pkgs; [ >> wget >> unzip >> gitMinimal >> tmux >> mariadb >> php56 >> duplicity >> nodejs >> redis >> php56Packages.apcu >> php56Packages.composer >> php56Packages.redis >> certbot >> sysstat >> iotop >> ]; >> >> nixpkgs.config.packageOverrides = php56: >> php56.merge { >> cfg = { >> xslSupport = true; >> }; >> }; >> } >> >> >> On Sun, Oct 30, 2016 at 8:06 PM Jookia <166...@gmail.com> wrote: >> >> 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 = false; >> > xslSupport = false; >> > }; >> > } >> > >> > Use this with nixpkgs.config.packageOverrides >> >> It's really obscure how to use these old-timey .merge{} operations. Maybe >> it >> should be documented somewhere or finally replaced with proper overrides? >> >> ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Override php xslSupport config option
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 On Tue, Nov 1, 2016 at 4:22 PM 4levels <4lev...@gmail.com> wrote: > 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 string* in the php > default.nix file on line 18, which is the line where the version is > specified. I'm clearly missing something obvious here (again) so still no > luck. > > Thanks for your support! > > Erik > > On Tue, Nov 1, 2016 at 2:35 PM 4levels <4lev...@gmail.com> wrote: > > 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 currently have the following: > > nixpkgs.config.packageOverrides = pkgs: rec { > php56 = pkgs.php56.override { > config = { > xslSupport = true; > }; > }; > }; > > > > On Tue, Nov 1, 2016 at 2:21 PM 4levels <4lev...@gmail.com> wrote: > > 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 currently have (excerpt): > > environment.systemPackages = with pkgs; [ > wget > unzip > gitMinimal > tmux > mariadb > php56 > duplicity > nodejs > redis > php56Packages.apcu > php56Packages.composer > php56Packages.redis > certbot > sysstat > iotop > ]; > > nixpkgs.config.packageOverrides = php56: > php56.merge { > cfg = { > xslSupport = true; > }; > }; > } > > > On Sun, Oct 30, 2016 at 8:06 PM Jookia <166...@gmail.com> wrote: > > 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 = false; > > xslSupport = false; > > }; > > } > > > > Use this with nixpkgs.config.packageOverrides > > It's really obscure how to use these old-timey .merge{} operations. Maybe > it > should be documented somewhere or finally replaced with proper overrides? > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Override php xslSupport config option
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 string* in the php default.nix file on line 18, which is the line where the version is specified. I'm clearly missing something obvious here (again) so still no luck. Thanks for your support! Erik On Tue, Nov 1, 2016 at 2:35 PM 4levels <4lev...@gmail.com> wrote: > 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 currently have the following: > > nixpkgs.config.packageOverrides = pkgs: rec { > php56 = pkgs.php56.override { > config = { > xslSupport = true; > }; > }; > }; > > > > On Tue, Nov 1, 2016 at 2:21 PM 4levels <4lev...@gmail.com> wrote: > > 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 currently have (excerpt): > > environment.systemPackages = with pkgs; [ > wget > unzip > gitMinimal > tmux > mariadb > php56 > duplicity > nodejs > redis > php56Packages.apcu > php56Packages.composer > php56Packages.redis > certbot > sysstat > iotop > ]; > > nixpkgs.config.packageOverrides = php56: > php56.merge { > cfg = { > xslSupport = true; > }; > }; > } > > > On Sun, Oct 30, 2016 at 8:06 PM Jookia <166...@gmail.com> wrote: > > 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 = false; > > xslSupport = false; > > }; > > } > > > > Use this with nixpkgs.config.packageOverrides > > It's really obscure how to use these old-timey .merge{} operations. Maybe > it > should be documented somewhere or finally replaced with proper overrides? > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Override php xslSupport config option
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 currently have the following: nixpkgs.config.packageOverrides = pkgs: rec { php56 = pkgs.php56.override { config = { xslSupport = true; }; }; }; On Tue, Nov 1, 2016 at 2:21 PM 4levels <4lev...@gmail.com> wrote: > 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 currently have (excerpt): > > environment.systemPackages = with pkgs; [ > wget > unzip > gitMinimal > tmux > mariadb > php56 > duplicity > nodejs > redis > php56Packages.apcu > php56Packages.composer > php56Packages.redis > certbot > sysstat > iotop > ]; > > nixpkgs.config.packageOverrides = php56: > php56.merge { > cfg = { > xslSupport = true; > }; > }; > } > > > On Sun, Oct 30, 2016 at 8:06 PM Jookia <166...@gmail.com> wrote: > > 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 = false; > > xslSupport = false; > > }; > > } > > > > Use this with nixpkgs.config.packageOverrides > > It's really obscure how to use these old-timey .merge{} operations. Maybe > it > should be documented somewhere or finally replaced with proper overrides? > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Override php xslSupport config option
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 currently have (excerpt): environment.systemPackages = with pkgs; [ wget unzip gitMinimal tmux mariadb php56 duplicity nodejs redis php56Packages.apcu php56Packages.composer php56Packages.redis certbot sysstat iotop ]; nixpkgs.config.packageOverrides = php56: php56.merge { cfg = { xslSupport = true; }; }; } On Sun, Oct 30, 2016 at 8:06 PM Jookia <166...@gmail.com> wrote: 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 = false; > xslSupport = false; > }; > } > > Use this with nixpkgs.config.packageOverrides It's really obscure how to use these old-timey .merge{} operations. Maybe it should be documented somewhere or finally replaced with proper overrides? ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Override php xslSupport config option
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 = false; > xslSupport = false; > }; > } > > Use this with nixpkgs.config.packageOverrides It's really obscure how to use these old-timey .merge{} operations. Maybe it should be documented somewhere or finally replaced with proper overrides? ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Override php xslSupport config option
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 nixpkgs.config.packageOverrides 2016-10-30 18:00 GMT+03:00 4levels <4lev...@gmail.com>: > 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 this option to true so PHP is built with xsl support? > > Kind regards, > > Erik > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] Override php xslSupport config option
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 this option to true so PHP is built with xsl support? Kind regards, Erik ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev