lua-packages/luasocket: Fix wrong platforms value

This has surfaced due to 505d7bea3a and
the fixup commit 77f5a50c40.

The individial platform attributes are a list rather than single
elements, so in this case we got:

with platforms; [darwin linux freebsd illumos]

Which results in:

[ ["x86_64-darwin"]
  ["i686-linux" "x86_64-linux" "armv5tel-linux" "armv6l-linux"
   "armv7l-linux" "aarch64-linux" "mips64el-linux"]
  ["i686-freebsd" "x86_64-freebsd"]
  ["x86_64-solaris"]
]

So if you don't have allowBroken set in nixpkgs config, you end up with
an evaluation error because meta.platforms is expected to be a list
instead of a list of lists which we got here.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @mornfall, @vcunat
This commit is contained in:
aszlig 2017-02-19 23:58:33 +01:00
parent 4b833facf1
commit 7c9f4ee032
No known key found for this signature in database
GPG Key ID: 1DE8E48E57DB5436

View File

@ -239,7 +239,7 @@ let
meta = with stdenv.lib; {
homepage = "http://w3.impa.br/~diego/software/luasocket/";
platforms = with platforms; [darwin linux freebsd illumos];
platforms = with platforms; darwin ++ linux ++ freebsd ++ illumos;
maintainers = with maintainers; [ mornfall ];
};
};