[Nix-dev] mesaPlatforms vs mesaSupported (was: Re: hydra evaluation errors)

Florian Friesdorf flo at chaoflow.net
Sun Dec 2 20:34:19 CET 2012


Florian Friesdorf <flo at chaoflow.net> writes:
> Hi,
>
> hydra has evaluation errors for the nixpkgs/trunk jobset[1]
>
> Two were caused by a wrong license name, which I could fix. Left are two
> assertions errors and many caused by "unsupported platform for Mesa"
> (see below).
>
> Any hints how to fix these?
>
> Example evaluation errors:
>
> at `haskellPackages_ghc704.haskellPlatform' [system = "x86_64-darwin"]:
> user-thrown exception: unsupported platform for Mesa
>
> at `libdevil' [system = "x86_64-freebsd"]:
> user-thrown exception: unsupported platform for Mesa
> (..)
> [1] http://hydra.nixos.org/jobset/nixpkgs/trunk#tabs-errors

Cause of above evaluation errors is a divergence of pkgs.mesaSupported
and pkgs.lib.platforms.mesaPlatforms.

all-packages.nix:
  mesaSupported =
    system == "i686-linux" ||
    system == "x86_64-linux" ||
    system == "x86_64-darwin";

platforms.nix:
  linux = ["i686-linux" "x86_64-linux" "powerpc-linux" "armv5tel-linux" "armv7l-linux" "mips64el-linux"];
  mesaPlatforms = linux;

Is there a reason for this divergence or should mesaSupported use mesaPlatforms?
mesaSupported = elem system pkgs.lib.platforms.mesaPlatforms;

Should mesaPlatforms be extended or reduced?
mesaPlatforms = linux ++ [ "x86_64-darwin" ];
mesaPlatforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];

regards
florian
-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20121202/77c1ca17/attachment.bin 


More information about the nix-dev mailing list