unix-tools: get platforms from doubles

This commit is contained in:
Matthew Bauer 2019-04-30 17:43:52 -04:00
parent e500bb8409
commit accfd7ca08

View file

@ -22,7 +22,7 @@ let
in runCommand "${cmd}-${version}" {
meta = {
priority = 10;
platforms = map (n: { kernel.name = n; }) (attrNames providers);
platforms = lib.platforms.${stdenv.hostPlatform.parsed.kernel.name} or lib.platforms.all;
};
passthru = { inherit provider; };
preferLocalBuild = true;