Andres Loeh ks...@andres-loeh.de writes:
Why don't you just try it?
$ echo 'let lib = import nixpkgs/pkgs/lib/default.nix; in lib.elem 1
[1 2 (throw boo)]' | nix-instantiate --eval-only -
true
$ echo 'let lib = import nixpkgs/pkgs/lib/default.nix; in lib.elem 2
[1 2 (throw boo)]' |
On 12/12/2012 02:30 AM, Mathijs Kwik wrote:
On Wed, Dec 12, 2012 at 3:38 AM, Shea Levy s...@shealevy.com wrote:
On 12/11/2012 09:28 PM, Florian Friesdorf wrote:
Hi Eelco,
great work!
Eelco Dolstra eelco.dols...@logicblox.com writes:
* Nix no longer sets the immutable bit on files in
Hi,
On 12/12/12 03:28, Florian Friesdorf wrote:
* New primops: concatLists, elem, elemAt and filter.
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This seems lazy enough:
elem =
builtins.elem or
On 12/12/2012 11:07 AM, Eelco Dolstra wrote:
Hi,
On 12/12/12 03:28, Florian Friesdorf wrote:
* New primops: concatLists, elem, elemAt and filter.
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This
Hi,
On 12/12/12 17:15, Shea Levy wrote:
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This seems lazy enough:
elem =
builtins.elem or
(x: list: fold (a: bs: x == a || bs) false list);
On 12/12/2012 11:20 AM, Eelco Dolstra wrote:
Hi,
On 12/12/12 17:15, Shea Levy wrote:
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This seems lazy enough:
elem =
builtins.elem or
(x:
Hi,
On 12/12/12 17:24, Shea Levy wrote:
Huh? I didn't change the argument order, this is still a left fold. this just
short-circuits the eval of (x == a) when bs is true.
fold is actually a right fold :-)
--
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
On 12/12/2012 11:30 AM, Eelco Dolstra wrote:
Hi,
On 12/12/12 17:24, Shea Levy wrote:
Huh? I didn't change the argument order, this is still a left fold. this just
short-circuits the eval of (x == a) when bs is true.
fold is actually a right fold :-)
Oh, right. Sorry for the noise.
Eelco Dolstra eelco.dols...@logicblox.com writes:
Hi,
On 12/12/12 17:15, Shea Levy wrote:
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This seems lazy enough:
elem =
builtins.elem or
(x:
On 12/12/2012 01:12 PM, Florian Friesdorf wrote:
Eelco Dolstra eelco.dols...@logicblox.com writes:
Hi,
On 12/12/12 17:15, Shea Levy wrote:
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This seems lazy
On 12/12/2012 01:12 PM, Florian Friesdorf wrote:
Eelco Dolstra eelco.dols...@logicblox.com writes:
Hi,
On 12/12/12 17:15, Shea Levy wrote:
The elem library function evaluates all list elements instead of
returning true after finding a matching element.
Sure about that? This seems lazy
Hi Eelco,
great work!
Eelco Dolstra eelco.dols...@logicblox.com writes:
* Nix no longer sets the immutable bit on files in the Nix store. Instead,
the recommended way to guard the Nix store against accidental modification
on Linux is to make it a read-only bind mount, like this:
On 12/11/2012 09:28 PM, Florian Friesdorf wrote:
Hi Eelco,
great work!
Eelco Dolstra eelco.dols...@logicblox.com writes:
* Nix no longer sets the immutable bit on files in the Nix store. Instead,
the recommended way to guard the Nix store against accidental modification
on Linux
Excerpts from Eelco Dolstra's message of Fri Dec 07 17:03:58 +0100 2012:
So change your script... :-) I mean, you could make the same argument about
the
out variable.
Yes / no. lib is a very common name RUBYLIB PERLLIB etc. I have never
seen RUBYOUT or the like.
For the same reason why does
Hi,
I'm pleased to announce the availability of a new stable release of the
Nix package manager. Release 1.2 can be found at
http://hydra.nixos.org/release/nix/nix-1.2
This release has the following improvements and changes:
* Nix has a new binary substituter mechanism: the binary cache.
Nice, just 2 days late for a sinterklaas-present :P
On Fri, Dec 7, 2012 at 2:31 PM, Eelco Dolstra
eelco.dols...@logicblox.comwrote:
Hi,
I'm pleased to announce the availability of a new stable release of the
Nix package manager. Release 1.2 can be found at
Thank you all for those improvements
* Nix has a new binary substituter mechanism: the binary cache. A binary
cache contains pre-built binaries of Nix packages. Whenever Nix wants to
build a missing Nix store path, it will check a set of binary caches to
see
if any of them has
On 12/07/2012 10:24 AM, Marc Weber wrote:
Thank you all for those improvements
* Nix has a new binary substituter mechanism: the binary cache. A binary
cache contains pre-built binaries of Nix packages. Whenever Nix wants to
build a missing Nix store path, it will check a set of
Hi!
Congrats on the release. :-)
Eelco Dolstra eelco.dols...@logicblox.com skribis:
* Store optimisation (replacing identical files in the store with hard
links)
can now be done automatically every time a path is added to the store.
This
is enabled by setting the configuration
19 matches
Mail list logo