Re: Add a Nix flake

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Greg Burd <greg(at)burd(dot)me>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add a Nix flake
Date: 2026-08-26 18:28:15
Message-ID: fc83a410-613d-4a52-b817-dfb80f534487@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24.08.26 18:58, Greg Burd wrote:
> The reason to carry it in-tree: Nix users are a growing segment of the
> PostgreSQL developer base across Linux, macOS, and increasingly the BSDs and
> even illumos. Today each of them keeps a private flake to hack on Postgres, I
> have one, and I know I'm not alone.

I don't know. Over time, people made similar arguments about Homebrew,
Docker, and there will be more after this. People who are interested in
this can band together and maintain it among themselves.

> These private copies drift, disagree on
> which features to enable, and have to be re-derived every time someone new
> wants to contribute from a Nix machine. A single blessed flake in the tree
> gives everyone the same reproducible starting point and one place to keep it
> current, the same argument that motivates the .editorconfig and CI files we
> already ship.

I don't think these are good comparisons. A Nix configuration is
probably of interest to on the order of 1% of developers, whereas these
other things are relevant to most developers, and also importantly,
changes can be verified easily by anyone, without having to learn about
some new platform or tool.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2026-08-26 18:28:51 Re: Fix race condition in SSI when reading PredXact->SxactGlobalXmin
Previous Message Tomas Vondra 2026-08-26 18:08:11 Re: scary patch contest