[Nix-dev] assertions / throwing an error-message

Mathijs Kwik mathijs at bluescreen303.nl
Sun Nov 18 17:30:03 CET 2012


Hi all,

I broke the build again :D
I traced it down to a place in my expression [1] line 16.
A simple fix seems to be to assert that licenseAccepted is true as a
first line in the function.
However, this has the effect of hiding the entire package, instead of
showing the helpful message I want to throw.

How can I fix this?

Thanks,
Mathijs

[1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/neoload/default.nix


More information about the nix-dev mailing list