[Nix-dev] Git commit hashes

Colin Putney colin at wiresong.com
Tue Jun 2 20:28:50 CEST 2015


On Tue, Jun 2, 2015 at 9:33 AM, Vladimír Čunát <vcunat at gmail.com> wrote:

> Hi.
>
> On 06/02/2015 06:15 PM, Colin Putney wrote:
> > I'm running a small cluster with several custom-built services, and I'd
> > like to include git commit hashes in my logs so that I can easily find
> > the source code that's producing them. I thought this would be
> > straight-forward, but it's turning out to be surprisingly difficult.
>
> Do you know config.system.nixosVersion?
> That variable should be usable when generating config for nixos services.
>

I'm trying to get the commit hash of *my own* software, which I'm
installing on nixos, not the version of nixos that I'm installing into.
Still, it looks like nixos has solved this problem, somehow. Thanks for the
pointer.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150602/7fc2b936/attachment.html 


More information about the nix-dev mailing list