Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-15 Thread Shea Levy
On Mon, Apr 14, 2014 at 04:59:15PM +0200, Ludovic Courtès wrote: l...@gnu.org (Ludovic Courtès) skribis: Shea Levy s...@shealevy.com skribis: On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: The patch below allows files such as /nix/store/foo to be protected from GC if

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-15 Thread Vladimír Čunát
On 04/14/2014 04:59 PM, Ludovic Courtès wrote: It also guarantees that this thing lives on the same file system as the store, which means that rename(2) can be used to move it to its final location in the store. I don't think we should *force* nix to have temporary files on the same FS as

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-15 Thread Vladimír Čunát
On 04/14/2014 04:59 PM, Ludovic Courtès wrote: It also guarantees that this thing lives on the same file system as the store, which means that rename(2) can be used to move it to its final location in the store. I don't think we should *force* nix to have temporary files on the same FS as

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-15 Thread Eelco Dolstra
Hi, On 14/04/14 16:59, Ludovic Courtès wrote: The patch below allows files such as /nix/store/foo to be protected from GC if a root refers to them. This makes it easy for a build hook to use such files for its temporary working files. WDYT? It seems a bit odd to me to be using the store

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-15 Thread Ludovic Courtès
Shea Levy s...@shealevy.com skribis: On Mon, Apr 14, 2014 at 04:59:15PM +0200, Ludovic Courtès wrote: l...@gnu.org (Ludovic Courtès) skribis: Shea Levy s...@shealevy.com skribis: On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: The patch below allows files such as

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-15 Thread Ludovic Courtès
Eelco Dolstra eelco.dols...@logicblox.com skribis: On 14/04/14 16:59, Ludovic Courtès wrote: The patch below allows files such as /nix/store/foo to be protected from GC if a root refers to them. This makes it easy for a build hook to use such files for its temporary working files. WDYT?

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-14 Thread Ludovic Courtès
(Oops, forgot the Subject line; sorry!) Shea Levy s...@shealevy.com skribis: On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: The patch below allows files such as /nix/store/foo to be protected from GC if a root refers to them. This makes it easy for a build hook to use such

Re: [Nix-dev] [PATCH] Allow roots to refer to arbitrary files in the store

2014-04-14 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: Shea Levy s...@shealevy.com skribis: On Mon, Apr 14, 2014 at 03:38:01PM +0200, Ludovic Courtès wrote: The patch below allows files such as /nix/store/foo to be protected from GC if a root refers to them. This makes it easy for a build hook to use