@@ -16,10 +16,11 @@ stdenv.mkDerivation rec {
1616 sha256 = "1f24y83wa1vzzjq5kp857gjqdpnmf8pb29yw7fam0m8wxxw0c3gp";
1717 };
1818
19− buildInputs =
20− [ libev librsvg libpng libjpeg libtiff gpm openssl xz bzip2 zlib ]
21− ++ stdenv.lib.optionals enableX11 [ libX11 libXau libXt ]
22− ++ stdenv.lib.optional enableDirectFB [ directfb ];
19+ buildInputs = with stdenv.lib;
20+ [ libev librsvg libpng libjpeg libtiff openssl xz bzip2 zlib ]
21+ ++ optionals stdenv.isLinux [ gpm ]
22+ ++ optionals enableX11 [ libX11 libXau libXt ]
23+ ++ optional enableDirectFB [ directfb ];
2324
2425 nativeBuildInputs = [ pkgconfig bzip2 ];
2526
@@ -39,6 +40,6 @@ stdenv.mkDerivation rec {
3940 homepage = http://links.twibright.com/;
4041 description = "A small browser with some graphics support";
4142 maintainers = with maintainers; [ raskin urkud viric ];
42− platforms = platforms.linux;
43+ platforms = platforms.unix;
4344 };
4445}