Subject: [bug#33259] [PATCH 1/8] pack: Move store database creation to a separate derivation.

From: [email-masked] (Ludovic Courtès)
Date: Tue, 06 Nov 2018 15:43:54 +0100

Hi,

Danny Milosavljevic <[email-masked]> skribis:

> On Sun,  4 Nov 2018 23:10:29 +0100
> Ludovic Courtès <[email-masked]> wrote:
>
>> +  (when database
>> +    (install-file database (scope "/var/guix/db/"))
>> +    (chmod (scope "/var/guix/db/db.sqlite") #o644)
>
> Hmm, is it guaranteed that the basename of DATABASE is "db.sqlite" ?
> Sounds a little magical.

Yeah I understand your reluctance, but it’s actually guaranteed; if it
ever changes, this code will error out so hopefully we’ll catch it
with the tests.

Ludo’.