[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: Add OCaml. licenses: Add QPL.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] gnu: Add OCaml. licenses: Add QPL. |
Date: |
Mon, 21 Jan 2013 23:42:07 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Andreas Enge <address@hidden> skribis:
> Am Montag, 21. Januar 2013 schrieb Ludovic Courtès:
>> Alternately, you could move the ‘check’ phase after the install phase,
>> like this (untested):
>
> But then, if the check fails, the /nix/store would contain an "invalid"
> package, no?
No: if ‘check’ fails (or ‘install’, or ‘patch-shebangs’), then the whole
process fails, and the store path is marked as invalid.
That is, /nix/store/*-ocaml* exists and may even be populated, but
‘valid-path?’ returns #f for that directory. Thus, the daemon considers
that it has to rebuild it, as if it did not exist at all.
Thanks,
Ludo’.