[Nix-dev] Nix 1.2 released

Andres Loeh ksnix at andres-loeh.de
Thu Dec 13 00:17:05 CET 2012


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")]' | nix-instantiate --eval-only -
true
$ echo 'let lib = import <nixpkgs/pkgs/lib/default.nix>; in lib.elem 3
[1 2 (throw "boo")]' | nix-instantiate --eval-only -
error: user-thrown exception: boo

Seems lazy to me.

Cheers,
  Andres


More information about the nix-dev mailing list