[Nix-dev] [Nix-commits] SVN commit: nix - r32410 - nixpkgs/trunk/pkgs/top-level

Eelco Dolstra e.dolstra at tudelft.nl
Mon Feb 20 01:28:25 CET 2012


On 20/02/12 00:49, Peter Simons wrote:

>  >> all-packages.nix: define the 'andyetitmoves' attribute only on Linux platforms
>  >
>  > Why not add "assert stdenv.isLinux" to the expression for that package?
> 
> the package calls 'abort' in case it's built on a platform other than
> Linux -- and that caused generation of the nixpkgs tarball to fail. I
> was trying to avoid that failure. Can I achieve that by use of assert
> somehow? 

Yes, asserts are caught, but not aborts.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list