You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to define meta.platforms using set operations? For example, mongodb should no longer be built on 32-bit platforms. Currently, platforms = platforms.unix. How can I effectively set platforms = platforms.unix - platforms.i686?
Ah, sorry, I didn't consider that platforms no longer is a simple set of strings ... obviously there won't be overlap between unix and i686 because they represent different aspects of a platform. lib.systems.doubles.unix and lib.systems.doubles.i686 are more like what I had in mind, as in
Activity
joachifm commentedon Dec 18, 2018
There are some set operations defined in
lib, e.g.lib.subtractListsandlib.intersectLists.joachifm commentedon Dec 18, 2018
For your specific case I think you'd do
subtractLists platforms.i686 platforms.unixcyounkins commentedon Dec 18, 2018
Thank you @joachifm , I didn't see that! I guess those should be documented in https://nixos.org/nixpkgs/manual/#sec-functions-library . I don't think I'm qualified to do that though.
Unfortunately I also cannot seem to get the result I need:
joachifm commentedon Dec 18, 2018
Ah, sorry, I didn't consider that
platformsno longer is a simple set of strings ... obviously there won't be overlap betweenunixandi686because they represent different aspects of a platform.lib.systems.doubles.unixandlib.systems.doubles.i686are more like what I had in mind, as incyounkins commentedon Dec 20, 2018
Thank you again @joachifm!
pbogdan commentedon Dec 20, 2018
Just wanted to mention there's (AFAIK undocumented)
meta.badPlatformsattribute which may be suitable for this specific use case.