binutils: extend meta.platforms to unix to fix #12606

Also refactor meta.
Maybe we could have platforms.all in there, but I leave it here.

Changed files
+3 -3
pkgs
development
tools
misc
binutils
+3 -3
pkgs/development/tools/misc/binutils/default.nix
···
enableParallelBuilding = true;
-
meta = {
+
meta = with stdenv.lib; {
description = "Tools for manipulating binaries (linker, assembler, etc.)";
longDescription = ''
The GNU Binutils are a collection of binary tools. The main
···
`gprof', `nm', `strip', etc.
'';
homepage = http://www.gnu.org/software/binutils/;
-
license = stdenv.lib.licenses.gpl3Plus;
-
platforms = stdenv.lib.platforms.linux;
+
license = licenses.gpl3Plus;
+
platforms = platforms.unix;
/* Give binutils a lower priority than gcc-wrapper to prevent a
collision due to the ld/as wrappers/symlinks in the latter. */