[Nix-dev] Override php xslSupport config option

4levels 4levels at gmail.com
Tue Nov 1 14:21:16 CET 2016


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 <166291 at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161101/d0b49db7/attachment.html>


More information about the nix-dev mailing list