sane: remove ? null from inputs, cleanup meta

+8 -9
+8 -9
pkgs/applications/graphics/sane/xsane.nix
··· 7 7 , gtk2 8 8 , pkg-config 9 9 , libpng 10 - , libusb-compat-0_1 ? null 10 + , libusb-compat-0_1 11 11 , gimpSupport ? false 12 - , gimp ? null 12 + , gimp 13 13 }: 14 - 15 - assert gimpSupport -> gimp != null; 16 14 17 15 stdenv.mkDerivation rec { 18 16 pname = "xsane"; ··· 29 27 ''; 30 28 31 29 nativeBuildInputs = [ pkg-config ]; 32 - buildInputs = [ libpng sane-backends sane-frontends libX11 gtk2 ] 33 - ++ (if libusb-compat-0_1 != null then [ libusb-compat-0_1 ] else [ ]) 30 + 31 + buildInputs = [ libpng libusb-compat-0_1 sane-backends sane-frontends libX11 gtk2 ] 34 32 ++ lib.optional gimpSupport gimp; 35 33 36 - meta = { 34 + meta = with lib; { 37 35 homepage = "http://www.sane-project.org/"; 38 36 description = "Graphical scanning frontend for sane"; 39 - license = lib.licenses.gpl2Plus; 40 - platforms = with lib.platforms; linux; 37 + license = licenses.gpl2Plus; 38 + platforms = platforms.linux; 39 + maintainers = with maintainers; [ ]; 41 40 }; 42 41 }