[Nix-dev] Override php xslSupport config option
4levels
4levels at gmail.com
Tue Nov 1 14:35:42 CET 2016
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 <4levels at 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 <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/35e5f808/attachment.html>
More information about the nix-dev
mailing list