stoken: fix evaluation (licence), refactor a little

I hope @fuuzetsu doesn't mind the refactoring.
BTW, do you know about `autoreconfHook`? It might save the preConfigure
and most buildInputs.

+5 -5
+5 -5
pkgs/tools/security/stoken/default.nix
··· 23 23 buildInputs = [ 24 24 autoconf automake libtool pkgconfig 25 25 libxml2 nettle 26 - ] ++ (if withGTK3 then [ gtk3 ] else []); 26 + ] ++ stdenv.lib.optional withGTK3 gtk3; 27 27 28 - meta = { 28 + meta = with stdenv.lib; { 29 29 description = "Software Token for Linux/UNIX"; 30 30 homepage = https://github.com/cernekee/stoken; 31 - license = stdenv.lib.license.lgpl21Plus; 32 - maintainers = [ stdenv.lib.maintainers.fuuzetsu ]; 33 - platforms = stdenv.lib.platforms.all; 31 + license = licenses.lgpl21Plus; 32 + maintainers = [ maintainers.fuuzetsu ]; 33 + platforms = platforms.all; 34 34 }; 35 35 }