lol

gammu: add some DB support

+8 -3
+8 -3
pkgs/applications/misc/gammu/default.nix
··· 1 1 { stdenv, fetchurl, python, pkgconfig, cmake, bluez, libusb1, curl 2 - , libiconv, gettext, sqlite }: 2 + , libiconv, gettext, sqlite 3 + , dbiSupport ? false, libdbi ? null, libdbiDrivers ? null 4 + , postgresSupport ? false, postgresql ? null 5 + }: 3 6 4 7 with stdenv.lib; 5 8 ··· 14 17 15 18 patches = [ ./bashcomp-dir.patch ]; 16 19 17 - buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ]; 20 + buildInputs = [ python pkgconfig cmake bluez libusb1 curl gettext sqlite libiconv ] 21 + ++ optionals dbiSupport [ libdbi libdbiDrivers ] 22 + ++ optionals postgresSupport [ postgresql ]; 18 23 19 24 enableParallelBuilding = true; 20 25 21 26 meta = { 22 27 homepage = "http://wammu.eu/gammu/"; 23 - description = "Command line utility and library to control mobil phones"; 28 + description = "Command line utility and library to control mobile phones"; 24 29 license = licenses.gpl2; 25 30 platforms = platforms.linux; 26 31 maintainers = [ maintainers.coroa ];