gammu: add some DB support

Changed files
+8 -3
pkgs
applications
misc
gammu
+8 -3
pkgs/applications/misc/gammu/default.nix
···
{ stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl
-
, libiconv, gettext, sqlite }:
+
, libiconv, gettext, sqlite
+
, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
+
, postgresSupport ? false, postgresql ? null
+
}:
with stdenv.lib;
···
patches = [ ./bashcomp-dir.patch ];
-
buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ];
+
buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ]
+
++ optionals dbiSupport [ libdbi libdbiDrivers ]
+
++ optionals postgresSupport [ postgresql ];
enableParallelBuilding = true;
meta = {
homepage = "http://wammu.eu/gammu/";
-
description = "Command line utility and library to control mobil phones";
+
description = "Command line utility and library to control mobile phones";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.coroa ];